Set up your GitHub account
- Set up a GitHub account. Existing personal accounts are fine to use.
- 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.
- Ask somebody with access to add your GitHub username to the user monitoring system.
- Generate and register an SSH key pair for your laptop for your GitHub account. You should use a
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
Add the above line into your
~/.bash_profileor equivalent so that it is persistent between restarts.
Test that it all works by running
ssh -T firstname.lastname@example.org.
While you’re here, associate your name and email to your git commits:
$ git config --global user.email "email@example.com" $ git config --global user.name "Friendly Giraffe"