Show Menu

OhMyZsh Git plugin Cheat Sheet by

git     plugin     ohmyzsh

Add

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

Commit

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
gcmsg
git commit -m
gcs
git commit -S

Reset

grh
git reset HEAD
grhh
git reset HEAD --hard
gpristine
git reset --hard && git clean -dfx
gclean
git clean -fd

Push

gp
git push
ggp
git push origin $(curr­ent­_br­anch)
gpoat
git push origin --all && git push origin --tags

Pull

ggl
git pull origin $(curr­ent­_br­anch)
ggpur
git pull --rebase origin $(curr­ent­_br­anch)
glum
git pull upstream master
ggpnp
git pull origin $(curr­ent­_br­anch) && git push origin $(curr­ent­_br­anch)
 

Log

glg
git log --stat -max-c­ount=10
glgg
git log --graph --max-­cou­nt=10
glgga
git log --graph --decorate --all
glo
git log --online --decorate --color
glog
git log --oneline --decorate --color --graph
glp
git log pretty=$1

Diff

gd
git diff
gdca
git diff --cached
gdw
git diff --word­-diff

Checkout

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

Stash

gsta
git stash save
gstaa
git stash apply
gstd
git stash drop
gstl
git stash list
gstp
git stash pop
gsts
git task show --text

Branch

gb
git branch
gba
git branch -a
gbd
git branch -d
gbnm
git branch --no-m­erged
gbr
git branch --remote

Rebase

grbi
git rebase -i
grbs
git rebase --skip
grbc
git rebase --continue
grba
git rebase --abort
gup
git pull --rebase

Download the OhMyZsh Git plugin Cheat Sheet

1 Page
//media.cheatography.com/storage/thumb/joel_ohmyzsh-git-plugin.750.jpg

PDF (recommended)

Alternative Downloads

Share This Cheat Sheet!

 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets

          Git Cheat Sheet
          Git Flow Cheat Sheet