Skip to content

Commit 4b86112

Browse files
authored
Merge pull request #2 from NithishG/master
Resolved the issue with `gb` script
2 parents 99651ad + 664c0db commit 4b86112

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)