command prompt logocommand prompt

Version control class setup

Before the class, install Git and VS Code, apply for GitHub Education, and set your Git name and email. Choose your operating system and follow the steps below — no prior Git experience needed.

Before you begin

Allow around 20–30 minutes and use a stable internet connection. GitHub may take longer to approve a student application; submitting it before class is enough.

If you get stuck, email e.morgan@ed.ac.uk for help.

1. Install Git and VS Code

Select your operating system above to see its instructions.

Windows

Open PowerShell from the Start menu to run the Git commands below.

Git

Done ✓

Step 1 — check whether it's already installed and up to date

git --version

If you see a line beginning 'git version', Git is installed. If the command is not recognised, install it below.

VS Code

Done ✓

You just need the VS Code desktop app installed — no terminal setup required.

On a University-managed Windows laptop, you should be able to install VS Code from the Software Center. Otherwise, follow the instructions below.

  1. Download VS Code:
  2. Run the installer and accept the defaults.
  3. Open VS Code to confirm it launches.

macOS

Open Terminal with Cmd+Space, type Terminal, then press Enter.

Git

Done ✓

Step 1 — check whether it's already installed and up to date

git --version

If you see a line beginning 'git version', Git is installed. A prompt to install developer tools is normal — follow the steps below.

VS Code

Done ✓

You just need the VS Code desktop app installed — no terminal setup required.

  1. Download from VS Code (choose Mac) — it downloads a .zip:
  2. Open the downloaded file, then drag Visual Studio Code into your Applications folder.
  3. Open VS Code to confirm it launches.

Linux

Open your usual terminal to run the commands below. On many distributions, Ctrl+Alt+T opens it.

The main commands are for Debian and Ubuntu. Fedora, Arch, and openSUSE alternatives are noted where relevant.

Git

Done ✓

Step 1 — check whether it's already installed and up to date

git --version

If you see a line beginning 'git version', Git is installed. If the command is not found, install it below.

VS Code

Done ✓

You just need the VS Code desktop app installed.

  1. Download the .deb package (Debian or Ubuntu):
  2. In Terminal, go to the folder containing the download, then install it:
    cd ~/Downloads

    If you saved the file elsewhere, go to that folder instead.

    sudo apt install ./code_*.deb
  3. Open VS Code to confirm it launches.

On Fedora or openSUSE, download the .rpm and install it with your package manager instead.

2. Set up GitHub Education

Create your GitHub account and apply

Done ✓

GitHub Education is a student benefit on a personal GitHub account, not a separate account. If you already have a GitHub account, use it.

  1. If you need an account, create a free personal GitHub account. Follow the prompts and verify your email address.
  2. If GitHub asks for an academic email during the student application, add your university email to your account and verify it using the message GitHub sends. You can keep your existing email as your primary address.
  3. Open your Education benefits settings. Under GitHub Education, choose Start an application, complete the form, and select Submit application. If you already have approved student benefits, you can skip the application.
  4. If asked for proof of current enrolment, follow GitHub's prompts. Examples include a current student ID, class schedule, transcript, or enrolment letter. Check the Education benefits page later for your application status.

GitHub's student application guide has the latest eligibility and verification guidance. Approval may arrive after the class.

3. Set your Git name and email

Git records these details on the commits you make. Use your own name and an email address verified on your GitHub account so GitHub can associate your commits with you.

Git commit identity

Done ✓

Step 1 — check whether your name and email are already set

git config --global user.name

Expected outputAda Lovelace

git config --global user.email

Expected outputada@ed.ac.uk

The two checks should print your name and an email verified on GitHub. If either is blank or needs changing, use the steps below.

Ready for class

  • git --version shows an installed Git version.
  • VS Code opens on your laptop.
  • You can sign in to your personal GitHub account, and your GitHub Education application is submitted or already approved.
  • git config --global user.name and git config --global user.email show your details.