Last active
January 2, 2020 10:38
-
-
Save walbinjr/1c10cb5b08922f30e2b1e567063baa07 to your computer and use it in GitHub Desktop.
Alias gitconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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