Skip to content

Instantly share code, notes, and snippets.

@walbinjr
Last active January 2, 2020 10:38
Show Gist options
  • Save walbinjr/1c10cb5b08922f30e2b1e567063baa07 to your computer and use it in GitHub Desktop.
Save walbinjr/1c10cb5b08922f30e2b1e567063baa07 to your computer and use it in GitHub Desktop.
Alias gitconfig
[alias]
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
lgg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --numstat
lgm = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --no-merges
st = status
co = checkout
cm = "commit -m "
all = "!f(){ git add . && git commit -m \"$1\"; git push origin; };f"
p = pull
g = grep --break --heading --line-number
fa = fetch -fup origin +refs/*:refs/*
[includeIf "gitdir:~/repos/work/"]
path = .gitconfig-work
[includeIf "gitdir:~/repos/play/"]
path = .gitconfig-play
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment