git push 时 rejected
git push 时 rejected
拉夫斯基 发表于2年前
git push 时 rejected
  • 发表于 2年前
  • 阅读 131
  • 收藏 0
  • 点赞 0
  • 评论 0

腾讯云 新注册用户 域名抢购1元起>>>   

git push遇到的问题:

wuzhiyi@IBM367-PB3Z5TM MINGW64 ~/workspace/HelloWorld/src/selenium (master)
$ git push osc master
To git@git.oschina.net:wuzhiyi51/selenium_learn.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'git@git.oschina.net:wuzhiyi51/selenium_learn.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

解决办法:

$ git push -u osc master -f
Total 0 (delta 0), reused 0 (delta 0)
To git@git.oschina.net:wuzhiyi51/selenium_learn.git
+ 4b61567...a20bcfd master -> master (forced update)
Branch master set up to track remote branch master from osc.

$ git push osc master
Everything up-to-date


共有 人打赏支持
粉丝 3
博文 8
码字总数 4153
×
拉夫斯基
如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!
* 金额(元)
¥1 ¥5 ¥10 ¥20 其他金额
打赏人
留言
* 支付类型
微信扫码支付
打赏金额:
已支付成功
打赏金额: