git add 的反操作

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

posted @ 2021-07-01 11:22  略略略——  阅读(442)  评论(0编辑  收藏  举报