Show Menu
Cheatography

Fish - Plugin-Git Cheat Sheet by

https://github.com/jhillyerd/plugin-git

Checkout

gco
git checkout
gcod
git checkout develop
gcom
git checkout (__git.de­fau­lt_­branch)
gcb
git checkout -b

Commit

gcam
git commit -a -m
gcm
git commit -m
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

Branch

gb
git branch -vv
gba
git branch -a -v
gbd
git branch -d
gbD
git branch -D
 

Pull

gl
git pull
ggl
git pull origin 'curre­nt-­branch'
gup
git pull --rebase

Push

gp
git push
gp!
git push --forc­e-w­ith­-lease
gpu
git push --set-­ups­tream origin (curre­nt-­branch)

Rebase

grb
git rebase
grba
git rebase --abort
grbc
git rebase --continue
grbi
git rebase --inte­ractive
grbs
git rebase --skip

Fetch

gf
git fetch
gfa
git fetch --all --prune
gfo
git fetch origin
 

Local Files

ga
git add
gaa
git add --all
grm
git rm
gd
git diff

Merge

gm
git merge
gmom
git merge origin­/(_­_gi­t.d­efa­ult­_br­anch)

Reset

grh
git reset HEAD
grhh
git reset HEAD --hard

Stash

gsta
git stash
gstd
git stash drop
gstl
git stash list
gstp
git stash pop
gsts
git stash show --text
       
 

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

          fisher-plugin-git Cheat Sheet
          OhMyZsh Git Cheat Sheet

          More Cheat Sheets by btqn

          OhMyZsh Git Cheat Sheet