Git-出错解决方案集锦

来源:互联网 发布:财务分析 知乎 编辑:程序博客网 时间:2024/05/16 03:45

Xcode: “The working copy __ has uncommitted changes” vs. git status: “nothing to commit, working directory clean”

解决方案:
1.Open terminal - cd / to your project directory.
2.Type in: “git reset –hard”
3.Type in git status

转自:http://stackoverflow.com/questions/20961822/xcode-the-working-copy-has-uncommitted-changes-vs-git-status-nothing

2.The current branch master has no upstream branch.
To push the current branch and set the remote as upstream, use

git push --set-upstream origin master

解决方案:git push origin master

0 1