Show Menu
Cheatography

fisher-plugin-git Cheat Sheet by

Fisher git plugin usage sheet

Commit

gc
git commit -v
gc!
git commit -v --amend
gcn!
git commit -v --no-edit --amend
gca
git commit -v -a
gca!
git commit -v -a --amend
gcan!
git commit -v -a --no-edit --amend
gcm
git commit -m
gcam
git commit -a -m

Push & Pull

gl
git pull
ggl
pull origin curren­t-b­ranch
gup
git pull --rebase
gp
git push
gp!
git push --forc­e-w­ith­-lease
ggp
push origin curren­t-b­ranch
gpoat
push all + tags to origin
ggpnp
pull & push origin curren­t-b­ranch

Stash & Work in Progress

gsta
git stash
gstd
git stash drop
gstp
git stash pop
gsts
git stash show --text
gwip
commit a work-i­n-p­rogress branch
gunwip
uncommit the work-i­n-p­rogress branch

Bisect

gbs
git bisect
gbsb
git bisect bad
gbsg
git bisect good
gbsr
git bisect reset
gbss
git bisect start

Remote

gr
git remote -vv
grmv
git remote rename
grrm
git remote remove
grset
git remote set-url
grup
git remote update
grv
git remote -v
 

Branch

gb
git branch -vv
gba
git branch -a -v
gbda
delete all branches merged in current HEAD
ggsup
git set upstream to origin/curren­t-b­ranch

Checkout

gco
git checkout
gcod
git checkout develop
gcom
git checkout master
gcb
git checkout -b

Flow

gfb
git flow bugfix
gff
git flow feature
gfr
git flow release
gfh
git flow hotfix
gfs
git flow support
gfbs
git flow bugfix start
gffs
git flow feature start
gfrs
git flow release start
gfhs
git flow hotfix start
gfss
git flow support start
gfbt
git flow bugfix track
gfft
git flow feature track
gfrt
git flow release track
gfht
git flow hotfix track
gfst
git flow support track
gfp
git flow publish

Rebase

grb
git rebase
grba
git rebase --abort
grbc
git rebase --continue
grbi
git rebase --inte­ractive
grbm
git rebase master
grbs
git rebase --skip
ggu
fetch & rebase curren­t-b­ranch on top of the upstream branch
 

Everything Else

g
git
ga
git add
gaa
git add --all
gapa
git add --patch
gcf
list git config­uration
gcl
git clone
gclean
pristine working directory: reset and force clean
gcp
git cherry­-pick
gd
git diff
gdca
git diff --cached
gdv
pipe git diff to
view
command
gignore
git update­-index --assu­me-­unc­hanged
gignored
list tempor­arily ignored files
gf
git fetch
gfa
git fetch --all --prune
gfo
git fetch origin
gm
git merge
gmt
git mergetool --no-p­rompt
grh
git reset HEAD
grhh
git reset HEAD --hard
grt
cd into the top of the current repository or submodule
gsh
git show
gsd
git svn dcommit
gsr
git svn rebase
gss
git status -s
gst
git status
gunignore
git update­-index --no-a­ssu­me-­unc­hanged

Log

gcount
git shortlog -sn
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 --color
gloo
git log --pret­ty=­for­mat­:'%­C(y­ell­ow)%h %Cred%ad %Cblue­%an­%Cg­reen%d %Creset%s' --date­=short
glog
git log --oneline --decorate --color --graph
glp
git log at requested pretty level
gwch
git whatch­anged -p --abbr­ev-­commit --pret­ty=­medium
           
 

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

          Kitchen Reminders Cheat Sheet
          Fish - Plugin-Git Cheat Sheet

          More Cheat Sheets by UltimatePancake