Skip to content

Instantly share code, notes, and snippets.

@paperdigits
Last active January 2, 2016 23:39
Show Gist options
  • Save paperdigits/8377518 to your computer and use it in GitHub Desktop.
Save paperdigits/8377518 to your computer and use it in GitHub Desktop.
git rev-list HEAD --count
#This snipped is to merge a branch into the master branch of a Git repository. To make the commit histories nice, we will use git rebase, then merge...
#check out the branh you want to merge into master.
git checkout <branch name>
#use rebase to merge histories
git rebase master
#RESOLVE REPOSITORY CONFICTS HERE!
#change back to master
git checkout master
#merge the two together
git merge <branch name>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment