p>To get the changes to dir2 files which are also in dir1 since a given commit...cd dir2git diff <commit> -- `cat shared.out` > dir2.patch然后使用 patch 和相应的 -p 标志。如果您不想更改任何内容,请使用 git checkout< dir1 / somefile> 撤消更改。然后像往常一样添加并提交。Then apply that patch to dir1 using patch and the appropriate -p flag. Anything you don't want to change, use git checkout <dir1/somefile> to undo the changes. Then add and commit as normal. 这篇关于创建不包含某些文件的补丁文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
07-22 15:28
查看更多