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取消关联然后重新关联就好了

《L01 基础入门》
我们将带你从零开发一个项目并部署到线上,本课程教授 Web 开发中专业、实用的技能,如 Git 工作流、Laravel Mix 前端工作流等。
《G01 Go 实战入门》
从零开始带你一步步开发一个 Go 博客项目,让你在最短的时间内学会使用 Go 进行编码。项目结构很大程度上参考了 Laravel。
讨论数量: 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年前 评论

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