Last active
January 2, 2016 23:39
-
-
Save paperdigits/8377518 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git rev-list HEAD --count |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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