🌎 Publish your Code | Betabox

🌎 Publish your Code

If everything looks good with your site, it’s time to push!

There are a few steps we need to take here:

  1. Stage our changes
  2. Commit our changes
  3. Push our changes
  4. Enable GitHub Pages

Stage Changes

In Atom, first ensure you have the Git and GitHub tabs open. You can do this by going to the Packages menu, hovering over GitHub, then enabling both of these.

Then, to stage your changes, click the Stage All button in the Git tab.

Commit Changes

To commit changes, look a bit further down in the Git tab, then first type in a commit message. This is simply a quick message that lets your future self know what you changed in this update.

Once that’s done, click Commit to master.

Push Changes

Time to push! Do this simply by clicking the Push button in the very bottom-right corner of Atom.

Enable GitHub Pages

Enabling GitHub pages is something you only need to do once per project, so this only needs to happen this time. For all future updates, you can skip this step.

First, go to GitHub.com and open your repository. If you’re having trouble finding it, you can use this sort of link to get there: https://github.com/your_username/your_folder_name

Click the Settings button for your repo, and scroll down to the GitHub Pages section.

Edit your GitHub pages settings to be like the following:

Congrats — you just published your website! 🎉

Click the link provided by GitHub to check it out.