Git 推送不上去?

vagrant@homestead:~/Code/sample1$ git push -u origin master
To git@github.com:qq907095500/sample.git
! [rejected]        master -> master (fetch first)
error: failed to push some refs to 'git@github.com:qq907095500/sample.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.
附言 1  ·  5年前

已经解决了,是我与远程仓库关联错了。执行git remote remove originq取消关联然后重新关联就好了

《L05 电商实战》
从零开发一个电商项目,功能包括电商后台、商品 & SKU 管理、购物车、订单管理、支付宝支付、微信支付、订单退款流程、优惠券等
《L04 微信小程序从零到发布》
从小程序个人账户申请开始,带你一步步进行开发一个微信小程序,直到提交微信控制台上线发布。
讨论数量: 9
你看我吊吗啊

账户是是不是没提示输入密码 所以没权限push

5年前 评论
你看我吊吗啊

@Winter 没让你输密码的话 我也遇到过。。我重新clone、pull的

5年前 评论

先执行:

git pull -u origin master

在执行:

git push -u origin master 
5年前 评论

git pull origin master 你远程仓库有了更改,得先拉取到本地再提交

5年前 评论

@LiCxi
error: failed to push some refs to 'git@github.com:qq907095500/sample.git' 怎么更改绑定的项目呢

5年前 评论

已经解决了,是我与远程仓库关联错了。执行git remote remove originq取消关联然后重新关联就好了

5年前 评论

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!