Created
August 24, 2020 09:22
-
-
Save brycetsao/39d1ba59de298a1f0c85793f34eee457 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| [color] | |
| ui = auto | |
| [push] | |
| default = simple | |
| [alias] | |
| lg = log --color --graph --all --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit -- | |
| lgf = log --color --graph --all --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --name-status | |
| lgp = log --color --graph --all --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --word-diff -p | |
| st = status | |
| a = add | |
| cm = commit -m | |
| p = push | |
| pr = pull --rebase | |
| pp = !git stash && git pull --rebase && git push && git stash apply | |
| ap = add -p | |
| al = add . | |
| co = checkout | |
| rh = reset --hard | |
| d = diff | |
| dw = diff --word-diff | |
| files = "!f() { git diff --name-status $1^ $1; }; f" | |
| [core] | |
| editor = subl | |
| excludesfile = ~/.gitignore_global |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment