Skip to content

Commit 664c0db

Browse files
authored
Merge pull request #1 from NithishG/gb-update
Updated `gb` script so that in case if there is any branch name is co…
2 parents 99651ad + bdbf70f commit 664c0db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bash_git

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ gb() {
1313
parent=${2:-$DEFAULT_PARENT_BRANCH}
1414
git checkout $parent
1515
git pull
16-
git checkout -b $1 $parent
17-
git push -u origin $1
16+
git checkout -b $1 refs/heads/$parent
17+
git push -u origin refs/heads/$1
1818
}
1919

2020

0 commit comments

Comments
 (0)