mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-25 02:00:37 +01:00
Added a script rebasing all actives branches
- Added a script rebasing and pushing every active branch, be sure to delete (git branch -D <branch>) any useless branch before using it!
This commit is contained in:
parent
aa640fb417
commit
336359e038
15
other_things/scripts/rebase_active_branches.sh
Executable file
15
other_things/scripts/rebase_active_branches.sh
Executable file
@ -0,0 +1,15 @@
|
|||||||
|
# Rebase actives branches
|
||||||
|
# Script by LeMagnesium (20/12/15)
|
||||||
|
# @param : Branches to rebase from master
|
||||||
|
# Must be ran from the root of the repo or a subdirectory
|
||||||
|
|
||||||
|
for branch in $( git branch ); do
|
||||||
|
if [ branch != "master" ];
|
||||||
|
then
|
||||||
|
git checkout $branch
|
||||||
|
git rebase master
|
||||||
|
git push -f origin $branch
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
git checkout master
|
Loading…
Reference in New Issue
Block a user