我在GitHub上创建了一个Git存储库,也创建了本地存储库。首先,我将远程存储库放入本地存储库。然后,我添加了一个文件,上演文件,提交它,现在我再次尝试做推到远程存储库,但它失败,此消息:使用Git for Windows推送到GitHub时出错
Pushing to https://github.com/jjenkov/java-utils To https://github.com/jjenkov/java-utils ! [rejected] master -> master (non-fast-forward) error: failed to push some refs to 'https://github.com/jjenkov/java-utils' hint: Updates were rejected because the tip of your current branch is behind hint: its remote counterpart. Merge the remote changes (e.g. 'git pull') hint: before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details.
我完全新的Git和Github上,所以也许我做错了什么。虽然远程仓库应该是空的(除了由GitHub生成的自述文件),我已经将远程仓库“提取”到本地仓库。
有谁知道问题是什么,或者我可以在哪里阅读解决方案?
后三个命令相当于'pull --rebase'。 – 2013-02-15 19:41:44