I got a classic situation - master and multiple branches. I need to merge changes (many changes through multiple commits) into master, but I want to ignore any changes that were made in master itself. I want master to be a clone of my branch.
I know that I could just checkout every file from branch into master and commit changes, but that won't make graph pretty :)
How can I achieve that? Solving merge-conflits is not enough, because there are still some changes that were auto-merged. Do I have to remove them manually or is there some git merge --magic
option that could help me?
ADD: I'd like files to be exact copy between branch and master (not commit history), but I'd like to have all that squished to single commit.