Skip to content

Instantly share code, notes, and snippets.

@jonpaul
Created March 26, 2012 19:49
Show Gist options
  • Save jonpaul/2209177 to your computer and use it in GitHub Desktop.
Save jonpaul/2209177 to your computer and use it in GitHub Desktop.
Git Legit
$ git switch <branch>
# Switches to branch. Stashes and restores unstaged changes.
$ git sync
# Syncronizes current branch. Auto-merge/rebase, un/stash.
$ git publish <branch>
# Publishes branch to remote server.
$ git unpublish <branch>
# Removes branch from remote server.
$ git harvest <branch>
# Auto-merge/rebase commits from given branch.
$ git sprout <branch>
# Sprout a new branch from the current branch.
$ git graft <branch>
# Merge unpublished branch into current branch, then remove it.
$ git branches
# Nice & pretty list of branches + publication status.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment