Show Menu
Cheatography

oh-my-zsh Cheat Sheet (DRAFT) by

https://github.com/robbyrussell/oh-my-zsh/wiki/Cheatsheet

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

git

alias
command
g
git
ga
git add
gaa
git add --all
gapa
git add --patch
gb
git branch
gba
git branch -a
gbd
git branch -d
gbl
git blame -b -w
gbnm
git branch --no-m­erged
gbr
git branch --remote
gbs
git bisect
gbsb
git bisect bad
gbsg
git bisect good
gbsr
git bisect reset
gbss
git bisect start
gc
git commit -v
gc!
git commit -v --amend
gca
git commit -v -a
gca!
git commit -v -a --amend
gcan!
git commit -v -a --no-edit --amend
gcans!
git commit -v -a -s --no-edit --amend
gcam
git commit -a -m
gcsm
git commit -s -m
gcb
git checkout -b
gcf
git conifg --list
gcl
git clone --recu­rsive
gclean
git clean -fd
gpristine
git reset --hard && git clean -dfx
gcm
git checkout master
gcd
git checkout develop
gcmsg
git commit -m
gco
git checkout
gcount
git shortlog -sn
gcp
git cherry­-pick
gcpa
git cherry­-pick --abort
gcpc
git cherry­-pick --continue
gcs
git commit -S
gd
git diff
gdca
git diff --cached
gdct
git describe --tabs
git rev-list --tags --max-­count=1
gdt
git diff-tree --no-c­omm­it-id --name­-only -r
gdw
git diff --word­-diff
gf
git fetch
gfa
git fetch --all --prune
gfo
git fetch origin
gg
git gui citool
gga
git gui citool --amend
ggpnp
git pull origin ${curr­ent­_br­anch} && git push origin ${curr­ent­_br­anch}
ggpull
git pull origin ${curr­ent­_br­anch}
ggl
git pull origin ${curr­ent­_br­anch}
ggpur
git pull --rebase origin ${curr­ent­_br­anch}
glum
git pull upstream master
ggpush
git push origin ${curr­ent­_br­anch}
ggp
git push origin ${curr­ent­_br­anch}
ggfl
git push --forc­e-w­ith­-lease origin <yo­ur_­arg­ume­nt>­/${­cur­ren­t_b­ranch}
ggsup
git branch --set-­ups­tre­am-­to=­ori­gin­/${­cur­ren­t_b­ranch}
gpsup
git push --set-­ups­tream origin ${curr­ent­_br­anch}
gignore
git update­-index --assu­me-­unc­hanged
gignored
git ls-files -v | grep "­^:l­owe­r:"
git-sv­n-d­com­mit­-push
git svn dcommit && git push github master­:sv­ntrunk
gk
gitk --all --branches
gl
git pull
glg
git log --stat --max-­cou­nt=10
glgg
git log --graph --max-­cou­nt=10
glgga
git log --graph --decorate --all
glo
git log --oneline --decorate --dolor
glog
git log --oneline --decorate --color --graph
glp
_git_l­og_­pre­tti­ly(git log --pret­ty=$1)
gm
git merge
gmt
git mergetool --no-p­rompt
gp
git push
gpoat
git push origin --all && git push origin --tags
gr
git remote
grba
git rebase --abort
grbc
git rebase --continue
grbs
git rebase --skip
grbi
git rebase -i
grh
git reset HEAD
grhh
git reset HEAD --hard
grmv
git remote rename
grrm
git remote remove
grset
git remote set-url
grt
cd $(git rev-parse --show­-to­plevel || echo ".")
grup
git remote update
grv
git remote -v
gsd
git svn dcommit
gsps
git show --pret­ty=­short --show­-si­gnature
gsr
git svn rebase
gss
git status -s
gst
git status
gsta
git stash save
gstaa
git stash apply
gstd
git stash drop
gstl
git stash list
gstp
git stash pop
gsts
git stash show --text
gsu
git submodule update
gunignore
git update­-index --no-a­sum­e-u­nch­anged
gunwip
git log -n 1 | grep -q -c "­--w­ip-­-" && git reset HEAD~1
gup
git pull --rebase
gvt
git verify-tag
gwch
git whatch­anged -p --abbr­ev-­commit --pretty = medium
gwip
git add -A; git ls-files --deleted -z | xargs -r0 git rm; git commit -m "­--w­ip-­-"
   

Commands

tabs
create a new tab in the current directory
take
create a new dir and change dir, will create interm­ediate
x | extract
extract an archive
zsh_stats
list of top 20 commands
uninst­all­_oh­_my_zsh
upgrad­e_o­h_m­y_zsh
source ~/.zshrc
uptake new changes
 

alias

alias
list all aliases
..
cd ..