mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-11-09 20:10:18 +01:00
336359e038
- Added a script rebasing and pushing every active branch, be sure to delete (git branch -D <branch>) any useless branch before using it!
16 lines
332 B
Bash
Executable File
16 lines
332 B
Bash
Executable File
# 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
|