Fish - Plugin-Git Cheat Sheet

A Programming › Git cheat sheet in English by btqn

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

5,932 views 1,092 downloads 18 Aug 2022 History

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 '­cur­ren­t-b­ran­ch'
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.

Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.