最近同事合代码出现问题,不知道怎么解决了,以前遇到一次,代码回退后,再合并依旧出现这个问题,求大佬帮助
问题描述: git pull
之后出现(master|MERGING)
切报异常
hint: Updates were rejected because the tip of your current branch is behind
hint: 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
failed to push some refs to 'http://***********.git'
然后 git reset -hard head
之后再git pull
又出现问题同样的问题,记得以前结果一次,就是回退,好像就好了,现在不行了
哪位大神路过,解释下
当前分支落后,先git pull拉取最新代码,可能存在冲突,解决冲突后,在git add,git commit,git push,提交之后才能切换到别的分支。

这里有两个冲突,到具体的文件中去把冲突解决掉,再执行
git add -A
git commit -m '描述'
git push