aboutsummaryrefslogtreecommitdiff
path: root/gen-branch
blob: 18752634df61c78dec8c955818eaccf3c09f6064 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env bash

BRANCH_NAME="feature/extra"
branches=$(echo user/luca/{distribution,dotnet,gotestsum,gotosocial,heisenbridge-1.14.6,hyprlock,matterbridge,nas,poezio-omemo,prose-app-web,swayr,today,vermin,wlrobs,swirc,youtube-tui})

git branch --delete --force "${BRANCH_NAME}"
git checkout -b "${BRANCH_NAME}"

for branch in ${branches}
do
	# git rebase ${branch} || exit 1
	tmp_name="tmp/${branch}"
	git checkout "${branch}"
	git checkout -b "${tmp_name}"
	git rebase master
	git checkout "${BRANCH_NAME}"
	git rebase "${tmp_name}"
	git branch --delete --force "${tmp_name}"
done