我错误地运行了命令
git add -A
Run Code Online (Sandbox Code Playgroud)
然后(当我弄清楚时)我用停止它
Ctrl+C
Run Code Online (Sandbox Code Playgroud)
有没有办法将存储库重置到之前的位置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")
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2823 次 |
| 最近记录: |