Add git config

This commit is contained in:
pgrondek 2020-06-16 02:56:05 +02:00
parent ad9403a640
commit 88d1ea0774
2 changed files with 19 additions and 0 deletions

10
.config/git/config Normal file
View File

@ -0,0 +1,10 @@
[user]
name = Przemysław Grondek
[alias]
unadd = reset
[help]
autocorrect = 1
[remotes]
prune = true
[pull]
rebase = true

9
bin/git-purge Executable file
View File

@ -0,0 +1,9 @@
#!/usr/bin/env sh
BRANCHES=$(git branch --merged|egrep -v "(^\*|master|dev)")
if [ -z "${BRANCHES}" ] ; then
echo "Nothing to delete"
else
git branch -d ${BRANCHES}
fi