git add 后再删除某个added的文件
2020-03-14 本文已影响0人
想溜了的蜗牛
场景:
做完某个功能后,使用 git add . 或 git add [file]
要求:
1. 将某个文件从 add 的列表中移除,保留之前未提交状态
git reset head <file>
git status
其它要求如将文件回复上一版本等, 参考 stackoverflow
场景:
做完某个功能后,使用 git add . 或 git add [file]
要求:
1. 将某个文件从 add 的列表中移除,保留之前未提交状态
git reset head <file>
git status
其它要求如将文件回复上一版本等, 参考 stackoverflow