我在提交git的时候,使用 xxx push xxx 忘记加后面的标签,导致出错:
查了一下资料终于解决。
参考
[url]http://stackoverflow.com/questions/1475665/why-git-push-helloworld-mastermaster-instead-of-just-git-push-helloworld[/url]
$ git push To git@github.com:zh/xxx.git
! [rejected] master -> master (non-fast forward)
error: failed to push some refs to 'git@github.com:xxx/xxxx.git'
查了一下资料终于解决。
$ git push xxx master:master
参考
[url]http://stackoverflow.com/questions/1475665/why-git-push-helloworld-mastermaster-instead-of-just-git-push-helloworld[/url]
本文介绍了一种常见的Git推送错误:由于未正确指定分支而导致的推送失败。通过具体步骤演示了如何修正这一错误,并附上了Stack Overflow上的参考资料。
2493

被折叠的 条评论
为什么被折叠?



