解决Git合并冲突的步骤
这个问题在这里已经有了答案:
  AFAICS,你想保持变化的develop和feature的变化。  在这种情况下,我更喜欢使用rebase,因为我希望develop作为我的feature分支的基础develop ,并且我只希望将A的feature放在develop之上。 
git checkout develop
git pull origin develop
git checkout feature
git rebase develop
# If any conflicts are here, you HAVE to look up what part of code you'd like to keep and what to discard.
这不会抛弃你。
链接地址: http://www.djcxy.com/p/7223.html