Commit specific lines of a file to git

Possible Duplicate:
How can I commit only part of a file in git

How do I commit a few specific line ranges from a file to git? while ignoring some other line changes in the same file.


尝试git add -p - 它会交互式地让你添加,跳过或分割差异hunk。


Use git add -i to stage the lines then commit as normal, or use git-cola until you get used to the command line.

分段文件的行

链接地址: http://www.djcxy.com/p/4172.html

上一篇: 在Git中提交文件的特定部分

下一篇: 将文件的特定行提交给git