使用git时遇到的坑 non-fast-forward

来源:互联网 发布:施工横道图绘制软件 编辑:程序博客网 时间:2024/06/08 13:40

! [rejected] resume-dev-gu -> resume-dev-gu (non-fast-forward)error: failed to push some refs to 'ssh://git@stash.imhuihui.cn:7999/fed/resume.git'hint: Updates were rejected because the tip of your current branch is behindhint: 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


解决办法


1.把远程代码拉下来 git pull origin XXX

2.处理冲突

3.git add   git commit   git push origin XXX


0 0
原创粉丝点击