1 2 读法 解决方案 ?? 未被追踪 git add -A 或git add 文件路径 A 新添加文件 注:??被add后的状态 OK,等待commit. M 已修改,已暂存 注:A类的不会有这个状态 OK,等待commit M 已修改,未暂存 git add 暂存文件路径/-A D 已删除,未暂存 git add -A 或者不手动删除,改git rm D 已删除,已暂存 OK,等待commit…
git reset --hard origin/master git status FAQ: When I issue the "git status" command, I see the following "Your branch is ahead or origin/master ..." git message: # On branch master # Your branch is ahead of 'origin/master' by 5 commit…
git status命令可以列出当前目录所有还没有被git管理的文件和被git管理且被修改但还未提交(git commit)的文件.. 比如; git status # On branch master # Changes to be committed: # (use "git reset HEAD <file>..." to unstage) # # modified: 2.txt # # Changes not staged for commit:…