Skip to content

Instantly share code, notes, and snippets.

@forsvunnet
Created June 21, 2013 10:23
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
#Make a new branch:
gco -b new_branch
#do bunch of changes
ga -A
gc -m "Made a bunch of changes"
#checkout master
gco master
#get the latest updates to master
gl
#Go back to new_branch or whatever you called it
gco new_branch
#Check diffs:
gd --stat master | cat -
#Attempt a merge (merges master into new_branch)
g merge master
#lots of merge conflicts:
g mergetool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment