5
git tips之只提交文件中的某些变更
source link: https://www.lujun9972.win/blog/2018/12/14/git-tips%E4%B9%8B%E5%8F%AA%E6%8F%90%E4%BA%A4%E6%96%87%E4%BB%B6%E4%B8%AD%E7%9A%84%E6%9F%90%E4%BA%9B%E5%8F%98%E6%9B%B4/index.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
git tips之只提交文件中的某些变更
git tips之只提交文件中的某些变更
有时候可能会不小心在同一个文件中对针对多个需求了修改,但是在提交代码时只想提交针对某个变更做的修改。
这时候可以试试 git add --patch ${file}
命令。
如下图所示:
2018-12-14
2018-12-14
linux和它的小伙伴
lujun9972
Related Issues not found
Please contact @lujun9972 to initialize the comment
Generated by Emacs 27.x(Org mode 9.x)
Copyright © 2014 - 2021 lujun9972
-
Powered by EGO
Themed with emacs_love
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK