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