git add .失败解决办法 (warning: You ran 'git add' with neither '-A (--all)' or '--ignore-removal')

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_38287952/article/details/80595807

今天在使用Git的时候 输入命令 git add . 提示错误:

   

使用 git status

   

  原因是因为有删除的文件,没有跟新到本地的仓库而导致的。


解决办法: 使用 git add -A 或者  git add -all



猜你喜欢

转载自blog.csdn.net/qq_38287952/article/details/80595807