- If you don't have a GitHub account, sign up.
- To join the
skill-collectorsorg, submit a request to join - Once you're a member of the org, Dave will give you access to the repo and gitter
npm run promptnpm run testThere is a helper script in ~/.local/bin/ called sgit. It allows you to
work with git with your own name/email even though this environment only has a
single shared git config.
You need to generate an SSH key that you will use to authenticate to GitHub.
aoc-owner-46acdf9:~/environment $ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/home/ec2-user/.ssh/id_rsa): /home/ec2-user/.ssh/id_rsa_your-github-idYou will be prompted for a password. It must be at least 5 characters.
Next you need to add your key to GitHub. First, copy it to your clipboard:
cat /home/ec2-user/.ssh/id_rsa_your-github-id.publicMake sure you cat the file that ends with .pub and not the (private) key with no file extension!
Next, go to https://github.com/settings/keys and click "New SSH key". You can name the key "Advent of Code Cloud9" and paste your public key into the "Key" box.
Now you're all set!
Option 1: You can specify your github ID with every command:
sgit [your-github-id] commit -m "My commit message"
sgit [your-github-id] pushOr you can use an environment variable once per session:
export GITHUB_USER="your-github-id"
sgit commit -m "My commit message"
sgit push