Skip to main content

Moving code between GitHub and a local development machine

This guide assumes that you use Visual Studio code as your development environment.

Whilst source control is a more involved topic, these basics will be enough to get you started.

Pre-requisites

Download and install Git

tip

For a detailed guide follow these steps from the DesignCheck2 documentation installation configuration

Visual Studio code

If you are using Visual Studio code as your editor Microsoft have written a comprehensive guide.

Downloading code from GitHub to your local machine

Find the url of the repository you wish to download in GitHub (see image below).

github-https-url

  • Open a new Visual Studio code window and navigate to the 'source control' tab
  • Press 'clone repository'
  • Paste in the git url of the repository you found on GitHub
  • Choose a folder to download the code to

clone repo

The code from GitHub will be downloaded and placed in a new folder (with a name matching the repository name)

Uploading code from your local machine to GitHub

  • Open the 'source control' tab of VS code
  • Write a short message
  • Press the 'commit and push' button

commit and push

Your code changes will now be on GitHub.