git pushup
- Pushes a branch and sets the upstream to be the branch of the same name (useful if your git push.default
is simple
):
On Linux:
git config --global alias.pushup \!'git push --set-upstream origin `git symbolic-ref --short HEAD`'
On Windows:
git config --global alias.pushup '!git push --set-upstream origin `git symbolic-ref --short HEAD`'