Added some scripts
This commit is contained in:
parent
b70af69038
commit
a557bb9c55
5 changed files with 105 additions and 18 deletions
17
Bin/removeMerged.sh
Executable file
17
Bin/removeMerged.sh
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue