git commit 失败"Untracked files,Changes not staged for commit" 问题的解决
2016-10-17 11:46
549 查看
问题描述
$ git commit On branch master Your branch is ahead of 'origin/master' by 2 commits. (use "git push" to publish your local commits) Changes not staged for commit: modified: SUMMARY.md Untracked files: mcloudv2/ no changes added to commit
git commit之后,提示git commit失败,提示Untracked files,Changes not staged for commit。也就是说,这个文件在commit之前需要先把文件放入暂存区。
这里有一句(use “git push” to publish your local commits),试一下git push,并不管用
问题解决
解决的办法很简单,只需要在commit之前add一下文件即可。$ git add SUMMARY. fatal: pathspec 'SUMMARY.' did not match any files
然后再commit一下就没有问题了。
相关文章推荐
- git commit 出现 changes not staged for commit 错误
- git commit 错误 On branch master Changes not staged for commit:
- git commit 出现 changes not staged for commit 错误
- "this class is not key value coding-compliant for the key ..."问题的解决
- [问题记录]解决警告"ld: warning: directory not found for option XXXX"
- (git问题)解决The current branch is not configured for pull No value for key remote.origin
- iOS "this class is not key value coding-compliant for the key ..."问题的解决
- 关于Can not find the tag library descriptor for "http://java.sun.com/jsp/jstl/ core"问题解决
- github changes not staged for commit
- 解决"Could not publish server configuration for Tomcat v8.0 Server at localhost."问题
- 访问Storm ui界面,出现org.apache.storm.utils.NimbusLeaderNotFoundException: Could not find leader nimbus from seed hosts ["master" "slave1"]. Did you specify a valid list of nimbus hosts for confi的问题解决(图文详解)
- "this class is not key value coding-compliant for the key ..."问题的解决(转)
- "ld: library not found for -l...." 问题的解决
- "ld: library not found for -l...." 问题的解决
- "this class is not key value coding-compliant for the key ..."问题的解决
- Git出现error: Your local changes to the following files would be overwritten by merge: ... Please, commit your changes or stash them before you can merge.的问题解决(Git代码冲突)
- "ld: library not found for -lz.1.2.3"的问题解决
- "this class is not key value coding-compliant for the key ..."问题的解决
- git认证证书问题解决方案(github clone "Permission denied (publickey). fatal: Could not read from remote reposi)
- Git出现error: Your local changes to the following files would be overwritten by merge: ... Please, commit your changes or stash them before you can merge.的问题解决(Git代码冲突)