From cbe4bdc0d74f9f297adfd6356ec0e08dbc950b50 Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Fri, 8 Jul 2022 07:53:28 +0100 Subject: [PATCH] Switch to main after gs-release Signed-off-by: Marcus Noble --- home/.bin/gs-release | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/home/.bin/gs-release b/home/.bin/gs-release index 8300e7a..69c3501 100755 --- a/home/.bin/gs-release +++ b/home/.bin/gs-release @@ -107,6 +107,11 @@ if [ "${CONFIRM}" = "y" ]; then echo "" echo "🚀 Keep an eye on $(underline "https://github.com/${ORG_NAME}/${REPO_NAME}/pulls") for the new release PR" + echo "" + + echo "Switching back to the main git branch" + git checkout $(git remote show origin 2>/dev/null|grep HEAD|sed 's/.* //') &> /dev/null + git pull &> /dev/null else echo "Aborting..." exit 1