Show Menu
Cheatography

mmaliases Cheat Sheet (DRAFT) by

This is a draft cheat sheet. It is a work in progress and is not finished yet.

General

ALIAS
COMMAND
UTILITY
b
cd ..
..
cd ..
...
cd ../../../
cd..
cd ..
lsa
ls -a
hs
history | grep
Search terminal history
mkcd
foo(){ mkdir -p "­$1"; cd "­$1" }; foo
c
clear
 

Git

ALIAS
COMMAND
g
git
gs
git status
ga
git add
gall
git add .
gcm
git commit -m
gac
git add . && git commit -m
gpo
git push origin
gpom
git push origin master
gplo
git pull orign
gplom
git pull origin master
gbr
git branch
gco
git checkout
gcob
git checkout -b
gcp
git cherry­-pick
gun *
reset --soft HEAD^
gls **
git log --pret­ty=­for­mat­:"%C­(ye­llo­w)%­h%C­red%d\\ %Crese­t%s­%Cb­lue\\ [%cn]" --decorate
* clear all files from stagging
** shows formatted git commit history
 

Docker

ALIAS
COMMAND
dps
docker ps