Created
August 15, 2023 09:18
-
-
Save BerkeKaragoz/ad468fd756153ad95c2bd4179fa30ce5 to your computer and use it in GitHub Desktop.
Add `/done` prefix to local branches
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
for branch in $(git branch | sed 's/\*//'); do | |
if [[ $branch != */* && $branch != "master" && $branch != "main" ]]; then | |
git branch -m $branch done/$branch | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment