Skip to content

Commit 4de3f5c

Browse files
committed
Update git-push-branch
1 parent c7fbb5f commit 4de3f5c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: git-push-branch

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
#!/bin/sh
2-
git push origin $1:refs/heads/$1
2+
BRANCH="${1:-$(git rev-parse --abbrev-ref HEAD)}"
3+
echo git push origin $BRANCH:refs/heads/$BRANCH

0 commit comments

Comments
 (0)