Last active
September 9, 2019 05:25
-
-
Save avalanchy/7803501 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] | |
email = yourname@example.com | |
name = Joe Smith | |
[alias] | |
d = diff HEAD | |
dn = diff --name-only | |
co = checkout | |
b = branch | |
ci = commit | |
st = status | |
this = symbolic-ref HEAD | |
cp = cherry-pick | |
pushf = push --force-with-lease | |
f = !sh -c 'git fetch origin $1:$1' - | |
fc = !sh -c 'git fetch origin $1:$1 && git checkout $1' - | |
fct = !sh -c 'git fetch origin $1:test-$1 && git checkout test-$1' - | |
rmb = !sh -c 'git b --merged | xargs git b -d' | |
pullf = !sh -c 'git fetch && git reset --hard origin/$(git b --show-current)' | |
[color] | |
diff = auto | |
branch = auto | |
status = auto | |
ui = auto | |
[push] | |
default = current | |
[core] | |
excludesfile = ~/.gitignore |
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
.idea |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment