将多个更改分解成与git单独提交? [英] Break up multiple changes into separate commits with git?
本文介绍了将多个更改分解成与git单独提交?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果我对一个大文件进行了多组更改,是否可以使用git将它们分成单独的提交?
您需要 git add --patch
,这将允许您选择要进行哪些更改。
If I have made multiple sets of changes to a large file, is it possible to split those into separate commits using git?
解决方案
You want git add --patch
, which will allow you to select which changes to stage.
这篇关于将多个更改分解成与git单独提交?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文