Skip to content

Instantly share code, notes, and snippets.

@harryhanYuhao
Created November 6, 2024 12:53
Show Gist options
  • Save harryhanYuhao/763a05a8159fdf75cb3fe666efc54825 to your computer and use it in GitHub Desktop.
Save harryhanYuhao/763a05a8159fdf75cb3fe666efc54825 to your computer and use it in GitHub Desktop.
git aliases
[alias]
ps = push
pl = pull
st = status
ci = commit
co = checkout
br = branch
lg1 = "log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(auto)%d%C(reset)' --all"
lg2 = "log --graph --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ai)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(auto)%d%C(reset)' --all"
lg = lg1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment