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

《L03 构架 API 服务器》
你将学到如 RESTFul 设计风格、PostMan 的使用、OAuth 流程,JWT 概念及使用 和 API 开发相关的进阶知识。
《L02 从零构建论坛系统》
以构建论坛项目 LaraBBS 为线索,展开对 Laravel 框架的全面学习。应用程序架构思路贴近 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年前 评论

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