Skip to content

Instantly share code, notes, and snippets.

@caelifer
Last active February 21, 2019 00:33
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 caelifer/837feb0843c512b1e3f7f66a2aaf20ec to your computer and use it in GitHub Desktop.
Save caelifer/837feb0843c512b1e3f7f66a2aaf20ec to your computer and use it in GitHub Desktop.
[alias]
lg1 = log --graph --abbrev-commit --decorate --date=relative --pretty=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim yellow) - %an%C(reset)%C(bold yellow)%d%C(reset)' --all
lg2 = log --graph --abbrev-commit --decorate --date=relative --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%C(reset)'
lg = !"git lg1"
co = checkout
ci = commit
stat = status
sync-master = "!git checkout master && git fetch upstream && git reset --hard upstream/master"
sync-branch = "!git fetch upstream && git merge upstream/master"
[push]
default = simple
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment