Show Your Work - GitHub.com

In a previous chapter, you saved your new website into github.com, and you can from there iterate, make changes, and even roll back. This chapter talks a bit more about Git and GitHub.

Git lets you both save, and keep track of the entire revision history - this ends up being very useful, since you might want look at old versions of your code, or even rollback if your code breaks and you don’t know how to fix it.

How to Push to GitHub

As another exercise, go ahead and write a bit of code like you did in the tutorials. Use the Text Editor the book said to install earlier. Maybe you just want to make a file called “hello_world.html.”

Next:

The linked instructions tell you how to use the “command line,” and I recommend that’s how you start, so you can get a really deep understanding of th git tool. However, those instructions also link to another page, which teaches you to use a GUI to push your code to github.com.

Command Line Tutorial

If you get stuck trying to push your code to github.com, step back and take thd command line tutorial from Codeacademy again (just repeat last chapter), which may break the ice for you. I really suggest you struggle a bit here, and don’t just use the Github desktop GUI tool - this will stunt your growth as a programmer.

This is also where having a mentor or friend kicks in. I’ve seen people get stuck trying to push their code to github.com, and it usually just takes two heads to muddle through any issues.

Open Source All of Your Code

When you push to github.com, choose an “MIT” license for your code when prompted. You’ll be best served if you make your code as free and open as possible to start - trust me, no one will steal it, and people will help you learn if you publish your work openly.