-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add reference to
update_init_branches.sh
(#7)
# Description Add a `.github/update_init_branches.sh` to update the init branches automatically. # Verification Script manually executed.
- Loading branch information
Showing
2 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
|
||
# | ||
# This script rebases all init branches on the main branch. | ||
# | ||
|
||
git checkout main | ||
git pull | ||
|
||
# for all init branches | ||
for branch in $(git branch --list "init-*"); do | ||
git checkout "$branch" | ||
git merge main | ||
git push | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters