reverse operation of git add

时间:2021-07-01 17:07:16   收藏:0   阅读:0

before commit, do:

git rm --cached <filename>

ATTENTION:

do not use ‘git rm <filename>‘, this will delete the file from disk

if commited, first use: "git reset --mixed <hashcode>" to reverse the commit

评论(0)
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!