Locked lesson.
About this lesson
How to backup your code and version control with Github.com
Exercise files
Download this lesson’s exercise file.
Using Github.com To Backup Our Code.docx57.5 KB
Quick reference
Using Github.com to Backup Code
Github is a website where you can backup your code.
When to use
You should use Github to backup all your code, always.
Instructions
Github.com is a free website that allows you to backup your code. Your code is public, if you want to keep it private you have to pay.
Every time you create a new coding project, you should create a repository for that code at Github.com
To show your SSH key to secure your account, type this command into your git bash terminal:
cat ~/.ssh/id_rsa.pub
Copy the SSH key and paste it into the SSH and GPG section of your Github.com account.
To push code to github.com after you have initialized it the first time, use this command:
git push
Hints & tips
- Github.com is a free code backup service.
- cat ~/.ssh/id_rsa.pub is the command to show your SSH key.
Lesson notes are only available for subscribers.