使用“git add .”命令提交代码后仍报错:“Changes not staged for commit” Macshion 2019-04-16 中文 Git, Github github仓库,本地删除了文件,使用 git add . 命令提交代码后仍报错: 12345678910111213On branch masterYour branch is up to date with 'origin/master'.Changes not staged for commit:(use "git add/rm <file>..." to update what will be committed)(use "git checkout -- <file>..." to discard changes in working directory) deleted: ../test no changes added to commit (use "git add" and/or "git commit -a") 最后指定报错的的文件解决了: 123git add ../testgit commit -m 'delete test'