如何在 SourceTree 中的两次 Git 提交之间导出所有更改的文件? [英] How to export all changed files between two Git commits in SourceTree?
本文介绍了如何在 SourceTree 中的两次 Git 提交之间导出所有更改的文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在 TortoiseGit 和 TortoiseSVN 中,可以将两个修订版之间所有更改的文件(包括目录结构)导出到外部文件夹.
In TortoiseGit and TortoiseSVN it is possible to export all changed files between two revisions, including the directory structure, to an external folder.
在 Atlassian SourceTree(适用于 Windows)中有没有办法做到这一点?
Is there a way to do so in Atlassian SourceTree (for Windows)?
推荐答案
试试这个:
git archive --output=test_zip.zip HEAD $(git diff --diff-filter=ACMRTUXB --name-only hash1 hash2)
只需将示例中的散列 1 和散列 2 替换为所需的提交散列,并命名要压缩更改的 zip 文件.
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.
它对我有用
这篇关于如何在 SourceTree 中的两次 Git 提交之间导出所有更改的文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文