本文介绍了如何在git中非交互式地分块?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我知道我可以使用以下任何命令添加块:
我发现我可以做到 git apply 命令
git apply --cached / tmp / patchme
I know I can add chunks using any of the following commands
git add -i git add --patch git add --editBut I can get all chunks for a file
git --no-pager diff file1 > /tmp/stagemeI can see three chunks I want only the first and last chunks, so I remove the second chunk the file /tmp/stageme
How I can stage those chunks in a command? I mean, how can I stage the info from /tmp/stageme?
解决方案I found I can do it the the git apply command
git apply --cached /tmp/patchme
这篇关于如何在git中非交互式地分块?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!