Posted in Code, Command Line Merging a Branch with the Master Branch in git Binny V A December 8, 2007 Leave a Comment on Merging a Branch with the Master Branch in git The commands needed to merge two branches in git. git checkout master git merge BrachName git commit -m "Merged" -a Author: Binny V AA philosopher programmer who specializes in backend development and stoicism.