Skip to main content
Table of contents

Learning GOV.UK

Set up your GitHub account

  1. Set up a GitHub account. Existing personal accounts are fine to use.
  2. Ask your tech lead to add you to the alphagov organisation. You will have to be added to the GOV.UK team to get access to repos & CI. Remember to click accept in the GitHub email invitation.
  3. Ask somebody with access to add your GitHub username to the user monitoring system.
  4. Generate and register an SSH key pair for your laptop for your GitHub account. You should use a 4096 bit key.
  5. Import the SSH key into your keychain. Once you’ve done this, you’ll be able to clone repos over SSH.

    $ /usr/bin/ssh-add -K your-private-key
  6. Add the above line into your ~/.bash_profile or equivalent so that it is persistent between restarts.

  7. Test that it all works by running ssh -T

  8. While you’re here, associate your name and email to your git commits:

    $ git config --global ""
    $ git config --global "Friendly Giraffe"
This page was last reviewed on 21 October 2019. It needs to be reviewed again on 21 April 2020 by the page owner #govuk-2ndline .
This page was set to be reviewed before 21 April 2020 by the page owner #govuk-2ndline. This might mean the content is out of date.