BaseBandRewrite/scripts/release.sh

11 lines
238 B
Bash
Raw Normal View History

2024-06-12 11:20:48 +02:00
#!/bin/bash
if ! git diff-index --quiet --cached HEAD -- ; then
echo "Cannot release dirty git tree. Commit your changes to main first."
exit 1
fi
2024-06-12 11:53:24 +02:00
git push "$@"
2024-06-12 11:20:48 +02:00
git checkout release
2024-06-12 11:53:24 +02:00
git reset --hard main
git push -f
2024-06-12 11:20:48 +02:00
git checkout main