Skip to content

Instantly share code, notes, and snippets.

@emeric-martineau
Created July 19, 2024 13:01
Show Gist options
  • Save emeric-martineau/f2b03ea2e66dbaf3000651beb0d26048 to your computer and use it in GitHub Desktop.
Save emeric-martineau/f2b03ea2e66dbaf3000651beb0d26048 to your computer and use it in GitHub Desktop.
Git config
[alias]
co = checkout
br = branch
ci = commit
st = status
ss = status -s
l = log --graph --pretty=format:\"%C(yellow)%h%Creset%C(cyan)%d %cr%Creset %s %Creset%C(green)%an\"
lf = log --pretty=fuller
unadd = reset HEAD^
graph = log --graph --abbrev-commit --decorate --format=format:'%C(yellow)%h%C(reset)%C(auto)%d%C(reset) %C(normal)%s%C(reset) %C(dim magenta)%an%C(reset) %C(dim blue)(%ar) %C(reset)' --all
pf = push --force-with-lease
ca = commit --amend --no-edit
[push]
autoSetupRemote = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment