http://michaelcrump.net/using-github-with-visualstudio-code/
The main command is the below to run in a command shell,
git remote add origin https://github.com/xinzhang/SampleProject.git
git push -u origin master
[remote "origin"]
url = https://github.com/mbcrump/SampleProject.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
After this is done, you commit the changes but there is still the below commands to run to be able to run PUSH from Visual Studio Code,git config --global credential.helper wincred
git config --global user.name "YOUR NAME"
git config --global user.email "YOUR EMAIL ADDRESS"