Created
June 13, 2019 11:03
-
-
Save satishgunjal/6a90ddf8bcc1ea3c87b96cba770233de to your computer and use it in GitHub Desktop.
Setup Github on Visual Studio Code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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