Skip to content

Latest commit

 

History

History
16 lines (14 loc) · 308 Bytes

merge-two-branches.md

File metadata and controls

16 lines (14 loc) · 308 Bytes
title slug
Merge two branches
merge-two-branches

Merge two branches

git fetch origin <headbranch>
git checkout <branch>
git merge FETCH_HEAD
# resolve conflicts
git commit
git push origin HEAD

<headbranch> would be the branch you want to merge into your current (checkout-ed) branch.