문제

I worked on a major refactoring of a big project. This refactoring was done on a dedicated branch, and is now finished. During that time development on master continued. Now I'd like to merge all the fresh changes into branch, apply the refactoring to new code as well, test everything and push back to master.

Can anyone provide the steppes how to do it? I tried to do git rebase master, but it seems to overwrite all the changes on the branch, without asking me about merging conflicts.

What is the best way to do this? Thanks in advance

도움이 되었습니까?

해결책

You have to checkout to the branch you want to merge to, and then do git merge {name of the branch with changes}

Read more on this site to learn how to undo a merge: http://git-scm.com/blog/2010/03/02/undoing-merges.html

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top