Skip to content

Latest commit

 

History

History
53 lines (43 loc) · 2.33 KB

GitSetup.md

File metadata and controls

53 lines (43 loc) · 2.33 KB

Setup VS code to Clone and Push from Github Repositories

Step-1

  • Create an Account on Github if you don't have an account already.

Step-2

  • 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
New_repo New_repo2
Step3
New_repo3

Step-3

  • 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
Clone1 Clone2 Clone3
Step4 Step5 Step6
Clone4 Clone5 Clone6

Step-4

  • 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
Commit1 Commit2 Commit1
Step4 Step5
Commit4 Commit5