You can prevent running into the following error:
> git push
fatal: The current branch your-favorite-branch has no upstream branch.
To push the current branch and set the remote as upstream, use
git push --set-upstream origin your-favorite-branch
Solution:
git config --global --add --bool push.autoSetupRemote true