From d085e9ce1ddf26bc673c5f49ddef26295f3264d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wo=C5=BAniak?= Date: Wed, 4 Oct 2023 23:21:30 +0200 Subject: [PATCH] Added new version of gswitch --- .local/bin/gswitch | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.local/bin/gswitch b/.local/bin/gswitch index cebc8af..fd45317 100755 --- a/.local/bin/gswitch +++ b/.local/bin/gswitch @@ -1,5 +1,7 @@ #!/bin/bash BRANCH=$1 +git checkout main +git checkout master git checkout -b "$BRANCH" git checkout "$BRANCH" git branch --set-upstream-to=origin/"$BRANCH" "$BRANCH"