Show Menu
Cheatography

Oh My Git Cheat Sheet (DRAFT) by

Oh My Zsh short cuts for Git

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Add

ga
git add
gaa
git add --all
gapa
git add --patch

Branch

gb
git branch
gba
git branch -a
gbda
git branch --merged | command grep -vE "­^(*­|\s­mas­ter­\s$­)" | command xargs -n 1 git branch -d
gbnm
git branch --no-m­erged
gbr
git branch --remote
ggsup
git branch --set-­ups­tre­am-to = origin­/$(­cur­ren­t_b­ranch)

Checkout

gco
git checkout
gcb
git checkout -b
gcm
git checkout master
gcd
git checkout develop