add branch bash

This commit is contained in:
gb 2023-07-19 10:13:23 +08:00
parent fd974839da
commit 17ee11620e
2 changed files with 7 additions and 0 deletions

4
ren-branch.sh Normal file
View File

@ -0,0 +1,4 @@
git branch -m ${1} ${2}
git push origin ${2}
git push origin :${1}
git push --set-upstream origin ${2}

3
switch-branch.sh Normal file
View File

@ -0,0 +1,3 @@
git checkout ${1}
git pull origin ${1}