Friday, February 12, 2016

Setting up Github with Visual Studio Code

Visual studio code support work with GitHub, you can reference the below link for the detailed steps,
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
Then the config file in the .git folder will become as below,
[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"