Skip to content

Instantly share code, notes, and snippets.

@nicuveo
Created Feb 18, 2022
Embed
What would you like to do?
Git config
[alias]
st = status
ci = commit
co = checkout
br = branch
ff = merge --ff-only
fa = fetch --all
rh = reset --hard
cp = cherry-pick
d = diff --color
sd = diff --color --staged
modified = diff --name-only --diff-filter=M
conflict = diff --name-only --diff-filter=U
pr = pull --rebase
lg = log --graph --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(bold white)%an%C(reset)%C(bold yellow)%d%C(reset)' --abbrev-commit --date=relative
lga = log --graph --all --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(bold white)%an%C(reset)%C(bold yellow)%d%C(reset)' --abbrev-commit --date=relative
pst = status --porcelain
amend = commit --amend
shove = push --force-with-lease
yolo = push -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment