本文主要是介绍github changes not staged for commit,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
在文件夹中删除文件后git commit,出现
On branch master
Changes not staged for commit:
和
no changes added to commit
解决:
http://stackoverflow.com/questions/10721624/github-changes-not-staged-for-commit
git add .
原理:
It is also common to recursively add all files in a new project by specifying the current working directory like this: git add .
. Since Git will recursively add all files under a directory you give it, if you give it the current working directory, it will simply start tracking every file there. In this case, a git add .
would have done the same thing as a git add README hello.rb
, or for that matter so would git add *
, but that's only because we don't have subdirectories which the *
would not recurse into.
http://gitref.org/basic/
这篇关于github changes not staged for commit的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!