Git推被拒绝,但我不想整合

时间:2014-07-15 21:17:51

标签: git github

我对本地项目进行了git推送,并收到以下消息:

! [rejected]        master -> master (fetch first)
error: failed to push some refs to 'https://github.com/jongravois/arman.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

该说明解释了如何使用git pull进行集成,但我更喜欢的是推送我所拥有的东西并让它远程覆盖而不是集成。

是否有命令?

0 个答案:

没有答案