Add git config
This commit is contained in:
parent
ad9403a640
commit
88d1ea0774
10
.config/git/config
Normal file
10
.config/git/config
Normal 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
9
bin/git-purge
Executable 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
|
Loading…
Reference in New Issue
Block a user