Last Updated: October 11, 2021
·
588
· iamjarvo

Git push current branch without specifying branch name

Ever wanted to do following to push the current checked out branch?

git push origin

Run the following command in your terminal:

git config --global push.default current