How to push a new branch non-existing on the remote server without --set-upstream?
The scenario is that I have no repos on the remote server, just an account. Then, I run locally the following commands, where x is the user name and y is the project name that only exists on my local system. git init git remote add buckety https://x@bitbucket.org/x/y.git git add . git commit --message "Here we go..." git push buckety Now I get the error urging me to set up the remote upstream. I can do that (either --set-upstream or -u ) but according to my googlearching, it's been deprecated. (Actually weird that the suggestion in the console mentions it still.) I want to do it the proper way