myhome/.local/bin/gswitch
Marcin Woźniak 06af68833a Added the git push with origin
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2023-04-21 06:51:12 +02:00

8 lines
177 B
Bash
Executable File

#!/bin/bash
BRANCH=$1
git checkout -b "$BRANCH"
git checkout "$BRANCH"
git branch --set-upstream-to=origin/"$BRANCH" "$BRANCH"
git pull
git push --set-upstream origin "$BRANCH"