When working with a project that is leveraging git as source control to a remote repository, you are unable to push to a remote branch other than master.
- Add a new project from a project on github.
- Create a new branch (check track)
- make sure your project is currently selected to the branch you just created
- Make changes to your project
- commit the changes
- attempt to push the changes from studio
note the error in the console:
fatal: The upstream branch of your current branch does not match
the name of your current branch. To push to the upstream branch
on the remote, use
git push . HEAD:master
To push to the branch of the same name on the remote, use
git push . <YOUR BRANCH NAME>