您的位置:首页 > 编程语言

github changes not staged for commit

2014-09-17 22:33 288 查看
在文件夹中删除文件后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/
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐