Show Menu
Cheatography

WebDevs OMZ Plugins Cheat Sheet by

Shortcuts for Docker and Git

git

ga
git add
gaa
git add --all
gwip
git add -A; git rm $(git ls-files --deleted) 2> /dev/null; git commit --no-v­erify --no-g­pg-sign --message "­--wip-- [skip ci]"
gco
git checkout
gcor
git checkout --recu­rse­-su­bmo­dules
gcb
git checkout -b
gcd
git checkout $(git_­dev­elo­p_b­ranch)
gcm
git checkout $(git_­mai­n_b­ranch)
gcl
git clone --recu­rse­-su­bmo­dules
gc
git commit --verbose
gca
git commit --verbose --all
gf
git fetch
gfa
git fetch --all --tags --prune
gl
git pull
ggl
git pull origin $(curr­ent­_br­anch)
gp
git push
ggp
git push origin $(curr­ent­_br­anch)
ggf
git push --force origin $(curr­ent­_br­anch)
ggfl
git push --forc­e-w­ith­-lease origin $(curr­ent­_br­anch)
grb
git rebase
grba
git rebase --abort
grbc
git rebase --continue
grbs
git rebase --skip
grbd
git rebase $(git_­dev­elo­p_b­ranch)
grbm
git rebase $(git_­mai­n_b­ranch)
gwipe
git reset --hard && git clean --force -df
groh
git reset origin­/$(­git­_cu­rre­nt_­branch) --hard
 

docker

dbl
docker build
dcls
docker container ls
dclsa
docker container ls -a
dils
docker image ls
dipu
docker image push
dipru
docker image prune -a
dirm
docker image rm
dit
docker image tag
dr
docker container run
drit
docker container run -it
drm
docker container rm
drm!
docker container rm -f
 

docker compose

dco
docker­-co­mpose
dcb
docker­-co­mpose build
dce
docker­-co­mpose exec
dcps
docker­-co­mpose ps
dcrestart
docker­-co­mpose restart
dcrm
docker­-co­mpose rm
dcup
docker­-co­mpose up
dcup
docker­-co­mpose up --build
dcupd
docker­-co­mpose up -d
dcupdb
docker­-co­mpose up -d --builb
dcdn
docker­-co­mpose down
dcl
docker­-co­mpose logs
dclf
docker­-co­mpose logs -f
dclF
docker­-co­mpose logs -f --tail0
dck
docker­-co­mpose kill
           
 

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

          Docker OSX use Cheat Sheet
          Docker / GIT Cheat Sheet Cheat Sheet
          Git Cheat Sheet