If you already have a local Git repository on your disk, you do not really need nor the GitHub extension, nor creating a new branch.
You only need to :
- get the URL of an empty Git repository on VSTS;
- add a new remote with this URL;
- push content to the new Git repository using the new remote;
1) get the URL of an empty Git repository
First retrieve the URL of an empty existing repository, or create a new empty repository using the VSTS web interface:
Onward this URL will be named with the placeholder 'URL_TO_REPO'.
2) Add a remote to local repository
You could add a new remote (called here 'vsts_origin') by means of Visual Studio, the command line, or a simple text editor:
3) Push your local repository mybranch content to the remote repository
push your code using the newly create remote by means of executing from command line:
>git checkout mybranch
>git push -u vsts_origin mybranch
This will automatically create the remote branch called mybranch .