已经add
,没有commit
1. 用版本库内容清空暂存区,git reset HEAD
2. 只把特定文件从暂存区删除,git rm --cached xxx
已经commit
1. 撤销暂存区的提交 git reset --filename
已经add
,没有commit
1. 用版本库内容清空暂存区,git reset HEAD
2. 只把特定文件从暂存区删除,git rm --cached xxx
已经commit
1. 撤销暂存区的提交 git reset --filename