我错误地运行了该命令
git add -A
然后(当我弄清楚)时,我使用
停止了它。Ctrl+C
有没有一种方法可以将存储库重置到
git add -A
之前的状态?
git status
显示:# On branch master
# Your branch is ahead of 'origin/master' by 2 commits.
#
# Changed but not updated:
# (use "git add/rm <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# deleted: 1xx_xx/xx.m~
# modified: 2xx_xx/xx_xx.m
# deleted: 3xx_xx/xx_xx.m~
# modified: 4xx_xx/xx_xx.m
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# xx_xxvariables_ldac/
# xx_xx/variables_ldac_template/
no changes added to commit (use "git add" and/or "git commit -a")