About this lesson
How to backup your code and version control with Github.com
Download this lesson’s exercise file.Using Github.com To Backup Our Code.docx
Using Github.com to Backup our Code
Github is a website where you can backup your code.
When to use
You should use Github to backup all your code, always.
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 create a SSH key to secure your account, type this command into the C9 terminal:
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:
Hints & tips
- Github.com is a free code backup service.
- Code at github.com is public - anyone can see it.
- To keep your code private you can pay Github for a private account.
- cat ~/.ssh/id_rsa.pub is the command to generate a SSH key
Lesson notes are only available for subscribers.