开发者

Commit specific lines of a file to git [duplicate]

开发者 https://www.devze.com 2023-01-27 07:06 出处:网络
This question already has answers here: 开发者_如何学JAVA Closed 10 years ago. Possible Duplicate:
This question already has answers here: 开发者_如何学JAVA Closed 10 years ago.

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.


Try git add -p -- it will interactively let you add, skip, or split diff hunks.


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

Commit specific lines of a file to git [duplicate]

0

精彩评论

暂无评论...
验证码 换一张
取 消