π Git
Delete all branches except master/main
Except main
:
git branch | grep -v " main$" | xargs git branch -D
Except master
:
git branch | grep -v " master$" | xargs git branch -D
Create new tag for deployment
git tag release-$(date +"%Y%m%d-%H%M%S") && git push --tags -v