mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
11 lines
250 B
Bash
Executable File
11 lines
250 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Archive an old branch as a tagged named archive/branch-name to declutter the branch list
|
|
|
|
BRANCH_NAME=$1
|
|
|
|
git tag archive/$BRANCH_NAME $BRANCH_NAME
|
|
git checkout -q archive/$BRANCH_NAME
|
|
git branch -d $BRANCH_NAME
|
|
git checkout -q master
|