How to export all changed files between two Git commits in SourceTree?

前端 未结 5 711
情歌与酒
情歌与酒 2021-02-02 00:03

In TortoiseGit and TortoiseSVN it is possible to export all changed files between two revisions, including the directory structure, to an external folder.

Is there a way

5条回答
  •  青春惊慌失措
    2021-02-02 00:52

    Try this:

    git archive --output=test_zip.zip HEAD $(git diff --diff-filter=ACMRTUXB --name-only hash1 hash2)
    

    Just replace the hash 1 and hash 2 in the example with the desired commits hash and name the zip file where you want your change to be zipped.

    It works for me

提交回复
热议问题