From 263d4e375f2c507a9a7f67a33e5852f2f03a6c6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wo=C5=BAniak?= Date: Thu, 2 Mar 2023 11:03:59 +0100 Subject: [PATCH] Added the gswitch --- .local/bin/gswitch | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 .local/bin/gswitch diff --git a/.local/bin/gswitch b/.local/bin/gswitch new file mode 100755 index 0000000..f26835d --- /dev/null +++ b/.local/bin/gswitch @@ -0,0 +1,6 @@ +#!/bin/bash +BRANCH=$1 +git checkout -b "$BRANCH" +git checkout "$BRANCH" +git branch --set-upstream-to=origin/"$BRANCH" "$BRANCH" +git pull