Last active
March 27, 2020 12:24
-
-
Save MarioRinaldi/9537172 to your computer and use it in GitHub Desktop.
~/.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
[user] | |
name = XXXX | |
email = YYYY | |
[push] | |
default = simple | |
[alias] | |
dev = checkout dev | |
prod = checkout prod | |
st = status | |
ci = commit | |
co = commit -m | |
cd = checkout | |
new = checkout -b | |
df = diff --word-diff=color | |
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate | |
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat | |
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate | |
lf = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(cyan)<%an>%Creset' --abbrev-commit --date=relative | |
pa = ! git remote | xargs -n 1 git remote prune | |
pp = ! git pull && git fetch --tags && git push && git push --tags && git submodule update | |
lt = describe --tags --abbrev=0 | |
p2m = diff origin/master..origin/prod | |
deploy = diff --name-only origin/master..origin/prod | |
patch-create = !sh -c 'git diff --no-color > $1' - | |
patch-apply = !sh -c 'git apply -v $1' - | |
[core] | |
editor = vscodium | |
[credential] | |
helper = osxkeychain |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment