Git/merge
		
		
		
		
		
		Jump to navigation
		Jump to search
		
		
	
Action: join two or more development histories together
"Incorporates changes from the named commits (since the time their histories diverged from the current branch) into the current branch. This command is used by git pull to incorporate changes from another repository and can be used by hand to merge changes from one branch into another."
Things to remember:
- It's better to have all changes committed before you try a merge.
- If the merge fails, you can "back out" with git merge --abort.
- If things get too ugly and you just want to revert to a known state, git reset --hard <commit>blows away all uncommitted changes and reverts to the given commit.