【发布时间】:2021-09-15 13:29:01
【问题描述】:
我运行这些命令来提交:
git add --all -p
// Then use "y" to stage hunks, and use "n" to not stage hunks
// I want to commit hunks which staged with "y"
git commit -a
// Then commit all
但是当我检查时,所有在 git add 中使用“y”和“n”的帅哥都提交到分支 我怎么能只提交我在使用 git add 时选择的帅哥?
【问题讨论】:
-
不要使用
-a运行 git commit?您是在告诉 git 暂存所有修改和删除的内容并提交。另外,你表演的是大块头,而不是大块头。