Skip to content

Instantly share code, notes, and snippets.

@satishgunjal
Created June 13, 2019 11:03
Show Gist options
  • Save satishgunjal/6a90ddf8bcc1ea3c87b96cba770233de to your computer and use it in GitHub Desktop.
Save satishgunjal/6a90ddf8bcc1ea3c87b96cba770233de to your computer and use it in GitHub Desktop.
Setup Github on Visual Studio Code
VS Code ships with a Git source control manager (SCM) extension.
But to use it with GitHub public/private repository please install Git on PC. Make sure to install the latest version of Git.
Go to 'https://github.com/' and create new repository for your project. e.g. gitTest
Now click on 'Clone or Download' and copy the url .e.g. https://github.com/satishgunjal/gitTest.git
Now open the terminal from VS Code and go to the location where you want to create this project directoty.
e.g. terminal path:> C:\Users\satish.gunjal\Google Drive\My Projects\Node.js\Workspace
'gitTest' Project folder will be created under 'Workspace' folder in file system
Now select Terminal Window and type:
git config --global user.name <github userID>
git clone <URL from github link copied earlier> >> this will create the 'gitTest' folder under 'Workspace' folder
That should be all that's required. Any newly created file should be available on github after stage/commit/push.
Reference:
Install Git:> https://git-scm.com/download
Using Version Control in VS Code:> https://code.visualstudio.com/docs/editor/versioncontrol
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment