Added some scripts

This commit is contained in:
Damien Broqua 2020-04-25 21:01:04 +02:00
parent b70af69038
commit a557bb9c55
5 changed files with 105 additions and 18 deletions

17
Bin/removeMerged.sh Executable file
View file

@ -0,0 +1,17 @@
#! /bin/bash
# Checkout develop
git develop
if [ $? = 1 ] ; then
git checkout dev
fi
# Get last changes
git pull
# Get list of available remote's branch
git fetch --prune origin
# List merged branch and remove it
git branch --merged | egrep -v "(^\*|master|dev)" |xargs git branch -d