Created
June 9, 2021 15:54
-
-
Save 9bany/a0393e2e476d057700e71898ae2fb22c to your computer and use it in GitHub Desktop.
git_push auto script file
This file contains 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
parse_git_branch() { | |
git symbolic-ref HEAD 2>/dev/null | cut -d"/" -f 3 | |
} | |
git push origin $(parse_git_branch) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment