Automatically set upstream branch in git as a global config

I find myself constantly having to set the corresponding branch upstream in git so I found this awesome SO answer that showed me how to set it as a global config. Now I can just push and it works. :tada:

git config --global push.default current
1 Like