Updates were rejected because the tip of your current branch is behind
2017-09-20 11:14
483 查看
有如下几种解决方法:
1.使用强制push的方法:
$ git push -u origin master -f
这样会使远程修改丢失,一般是不可取的,尤其是多人协作开发的时候。
2.push前先将远程repository修改pull下来
$ git pull origin master
$ git push -u origin master
3.若不想merge远程和本地修改,可以先创建新的分支:
$ git branch [name]
然后push
$ git push -u origin [name]
1.使用强制push的方法:
$ git push -u origin master -f
这样会使远程修改丢失,一般是不可取的,尤其是多人协作开发的时候。
2.push前先将远程repository修改pull下来
$ git pull origin master
$ git push -u origin master
3.若不想merge远程和本地修改,可以先创建新的分支:
$ git branch [name]
然后push
$ git push -u origin [name]
相关文章推荐
- git error:Updates were rejected because the tip of your current branch is behind
- hint: Updates were rejected because the tip of your current branch is behind
- git push 报错"Updates were rejected because the tip of your current branch is behind"
- updates were rejected because the tip of your current branch is behind its remote counterpart
- Updates were rejected because the tip of your current branch is behind its remote counterpart.
- 【git】updates were rejected because the tip of your current branch is behind its remote counterpart
- push代码:Updates were rejected because the tip of your current branch is behind
- Updates were rejected because the tip of your current branch is behind
- Updates were rejected because the tip of your current branch is behind
- Updates were rejected because the tip of your current branch is behindhint: its remote counterpart.
- Git报错:Updates were rejected because the tip of your current branch is behind
- Updates were rejected because the tip of your current branch is behind
- Updates were rejected because the tip of your current branch is behind
- git:rejected because the tip of your current branch is behind
- 解决 failed to push some refs to 'git@github.com:zle1992/head-first-java' hint: Updates were rejected because the tip of your curr
- err: git push.default Update were rejected because a pushed branch tip is behand remote
- git Updates were rejected because the remote contains work that you do 解决办法
- error: failed to push some refs to 'git@github.com:....." Updates were rejected because the remote c
- 将分支推送到远程存储库时遇到错误: rejected Updates were rejected because the remote contains work that you do not have locally