Push current branch to origin
Hack, but saves some keystrokes:
git push -u origin `git branch | grep '*' | sed -e 's/* //'
`
and/or to aliases file:
alias pushbranchtoorigin='git push -u origin `git branch | grep '*' | sed -e 's/* //'`'
Written by Dimitrios Mistriotis
Related protips
1 Response
I'm pretty sure if if you just do git push origin
it will push the current branch.
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#