Added the gswitch

This commit is contained in:
Marcin Woźniak 2023-03-02 11:03:59 +01:00
parent 27d3f8fc33
commit 263d4e375f
Signed by: y0rune
GPG Key ID: F204C385F57EB348

6
.local/bin/gswitch Executable file
View File

@ -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