- Create an Account on Github if you don't have an account already.
- If you already have a repository created, jump to Step-3
- Create a new repository
- Use available and meaningful name for your repository
- Select appropriate visibility for your repository. Public to make it visible for everyone on the internet. Private to make it visible only for you and contributors you add to your repository.
- Add the README .md and .gitignore files
- Verify that the files are visible under your repository.
Step1 | Step2 |
---|---|
Step3 |
---|
- Clone your Repository to your local machine through VS Code
- Copy the Https link of your github repository
- Use CTRL + SHIFT + P to open command pallette and type clone and select Clone from GitHub
- Paste the copied Https link and click Enter
- Select a location where the repository should be saved on the machine
- Select Open option to open the Cloned Repository in VS Code
- Check that the contents of the repository are shown in the VS Code
Step1 | Step2 | Step3 |
---|---|---|
Step4 | Step5 | Step6 |
---|---|---|
- Create a new file under the VS Code
- Select the Source control Menu on the Left
- Add your new files to the staging area by clicking on + icon
- Add a meaningful commit message according to the changes made and add to repository by clicking on ☑
- From the dropdown, select push to push your local changes to the Github repository.
- On completion, refresh the explorer and verify the added files are visible.
Step1 | Step2 | Step3 |
---|---|---|
Step4 | Step5 |
---|---|