Skip to content

Instantly share code, notes, and snippets.

@rymawby
Created June 27, 2013 11:39
Show Gist options
  • Save rymawby/5875809 to your computer and use it in GitHub Desktop.
Save rymawby/5875809 to your computer and use it in GitHub Desktop.
Handy cheatsheet for the git plugin for oh-my-zsh. Taken from https://github.com/robbyrussell/oh-my-zsh/wiki/Cheatsheet.
# Dynamic access to current branch name with the current_branch function
git pull origin $(current_branch)
grb publish $(current_branch) origin
# Helpful aliases for common git tasks
g # git
gst # git status
gl # git pull
gup # git fetch && git rebase
gp # git push
gd # git diff | mate
gdv # git diff -w "$@" | vim -
gc # git commit -v
gca # git commit -v -a
gco # git checkout
gb # git branch
gba # git branch -a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment