Skip to content

Instantly share code, notes, and snippets.

@Saracevas
Last active July 1, 2019 09:27
Show Gist options
  • Save Saracevas/54fbf772ab460f1b65b2bc8dd56dc107 to your computer and use it in GitHub Desktop.
Save Saracevas/54fbf772ab460f1b65b2bc8dd56dc107 to your computer and use it in GitHub Desktop.
Git Config Aliases
[alias]
shorty = status --short --branch
please = push --force-with-lease
merc = merge --no-ff
grog = log --graph --abbrev-commit --decorate --all --format=format:\"%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(dim white) - %an%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n %C(white)%s%C(reset)\"
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
co = checkout
br = branch
ci = commit
st = status
stats = shortlog -sn
praise = blame
recent = for-each-ref --count=10 --sort=-committerdate refs/heads/ --format=\"%(refname:short)\"
overview = log --all --oneline --no-merges
recap = log --all --oneline --no-merges --author=email@address.com
today = log --since=00:00:00 --all --no-merges --oneline --author=email@address.com
aliases = config --get-regexp '^alias\\.'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment