Skip to content

Instantly share code, notes, and snippets.

@nicuveo
Created February 18, 2022 18:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicuveo/70eab638933e118def2ccdf79fc132f9 to your computer and use it in GitHub Desktop.
Save nicuveo/70eab638933e118def2ccdf79fc132f9 to your computer and use it in GitHub Desktop.
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