如何在SourceTree中的两个Git提交之间导出所有更改的文件? [英] How to export all changed files between two Git commits in SourceTree?

查看:1916
本文介绍了如何在SourceTree中的两个Git提交之间导出所有更改的文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在TortoiseGit和TortoiseSVN中,可以将两个版本之间的所有已更改文件(包括目录结构)导出到外部文件夹。



有没有办法所以在Atlassian SourceTree(for Windows)?

解决方案

试试这个:

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

只需将示例中的散列1和散列2替换为所需的提交散列并将zip文件命名为希望将更改压缩的位置。 / p>

它适用于我

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 to do so in Atlassian SourceTree (for Windows)?

解决方案

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

这篇关于如何在SourceTree中的两个Git提交之间导出所有更改的文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆