Created
August 24, 2020 18:57
-
-
Save scwood/7166ab805fad2ab0dd28933acc83a61b to your computer and use it in GitHub Desktop.
Push to current branch name in the origin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias gpob='git push -u origin $(getCurrentGitBranch)' | |
getCurrentGitBranch() { | |
local branch=$(git rev-parse --abbrev-ref HEAD) | |
echo $branch; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment