Skip to content

Instantly share code, notes, and snippets.

@sumardi
Created October 21, 2011 16:39
Show Gist options
  • Save sumardi/1304290 to your computer and use it in GitHub Desktop.
Save sumardi/1304290 to your computer and use it in GitHub Desktop.
Basic branching & merging
$ git branch experimental
$ git branch
$ git checkout experimental
(edit file)
$ git commit -a
$ git checkout master
(edit file)
$ git commit -a
$ git merge experimental
$ git diff
$ git commit -a
$ gitk
$ git branch -d experimental
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment