We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7fbb5f commit 4de3f5cCopy full SHA for 4de3f5c
git-push-branch
@@ -1,2 +1,3 @@
1
#!/bin/sh
2
-git push origin $1:refs/heads/$1
+BRANCH="${1:-$(git rev-parse --abbrev-ref HEAD)}"
3
+echo git push origin $BRANCH:refs/heads/$BRANCH
0 commit comments