- HD
- 720p
- 540p
- 360p
- 0.50x
- 0.75x
- 1.00x
- 1.25x
- 1.50x
- 1.75x
- 2.00x
We hope you enjoyed this lesson.
Cool lesson, huh? Share it with your friends
About this lesson
Git allows us to backup and maintain versions of our code. In this lesson, we'll learn how to push our code to Git.
Exercise files
Download this lesson’s related exercise files.
Push Our Code to Github57.5 KB Push Our Code to Github - Solution
55.9 KB
Quick reference
Push Our Code to Github
Github.com allows us to host our Django project code on their website for safekeeping and backup.
When to use
You should always use github to backup your code.
Instructions
Sign up for a free github account.
Log in, go to settings, then go to SSH and GPG keys. Click "Add Key" to add your key.
To get your ssh key, from your terminal use this command:
cat ~/.ssh/id_rsa.pub
Copy the key and paste it into github.com
Next, click on repositories and Create a new Repository. Grab the two commands that github gives you and enter them (one at a time) into your terminal.
Hints & tips
- Don't forget to add your ssh key to github.com!
Lesson notes are only available for subscribers.