Git Merge Conflicts
Merging big code change on small code change
Make a temporary copy branch of the branch with a smaller code change
Go back to branch with the small code change and reset (if the small code change branches from the big code change) it to look like the branch with a big code change (Basically make your smaller code look exactly like your bigger code) - Remember the changes you made in the smaller code is copied in the temporary branch above
Now merge the temporary copy branch,
temp/small-code-change
, intosmall-code-change
(This may take some manual copy paste depending on how big the merge conflict is).
Squashing merges
git rebase -i master
Last updated