gentoo-sway #2
1 changed files with 14 additions and 0 deletions
14
Bin/qmkCreateBranch.sh
Executable file
14
Bin/qmkCreateBranch.sh
Executable file
|
@ -0,0 +1,14 @@
|
||||||
|
#! /bin/bash
|
||||||
|
|
||||||
|
if [ -z "$1" ]; then
|
||||||
|
echo "Missing branch name"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
git checkout master
|
||||||
|
git fetch upstream
|
||||||
|
git pull upstream master
|
||||||
|
git push origin master
|
||||||
|
|
||||||
|
git checkout -b $1
|
||||||
|
git push --set-upstream origin $1
|
Loading…
Reference in a new issue