Created
September 9, 2017 15:59
-
-
Save mgamer/5d9686b3458cd300f56f1d302e9b5a1b to your computer and use it in GitHub Desktop.
.gitconfig
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
[alias] | |
co = checkout | |
ec = config --global -e | |
up = !git pull --rebase --prune $@ && git submodule update --init --recursive | |
cob = checkout -b | |
cm = !git add -A && git commit -m | |
save = !git add -A && git commit -m 'fixup! SAVEPOINT' | |
wip = !git add -u && git commit -m "WIP" | |
undo = reset HEAD~1 --mixed | |
amend = commit -a --amend | |
wipe = !git add -A && git commit -qm 'WIPE SAVEPOINT' && git reset HEAD~1 --hard | |
bclean = "!f() { git branch --merged ${1-master} | grep -v " ${1-master}$" | xargs -r git branch -d; }; f" | |
bdone = "!f() { git checkout ${1-master} && git up && git bclean ${1-master}; }; f" | |
ri = rebase --interactive --autosquash | |
ignored = !git ls-files -v | grep "^[[:lower:]]" | |
rb = for-each-ref --count=20 --sort=-committerdate refs/heads/ --format=%(refname:short) | |
please = push --force-with-lease | |
squash = "!sh -c 'sh ~/.squash.sh $1 $2' -" | |
[push] | |
default = simple | |
[core] | |
editor = code --wait | |
[rerere] | |
enabled = true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment