Change your site

There are two main ways you can save changes to your site: on GitHub and on your computer. Choose which one best suits you, or you can mix and match as appropriate.

Since the template is based on Git, this page really just describes the different ways to make Git changes (commits).

On GitHub (remotely)

This is the easiest and most convenient method to edit your site. GitHub has a very nice and always-improving graphical web interface. If you wanted to, you could edit and manage your site entirely from the GitHub website.

There is a basic interface for changing single files at a time, and more advanced interfaces with multiple files, syntax highlighting, sophisticated controls, etc. Use one of these interfaces to make the changes you want, then either commit directly to your main branch (to publish your changes immediately) or create a new branch and pull request (to preview/review your changes before publishing them).

On your computer (locally)

This approach requires experience with Git and using command-line interfaces, but is better for when you're doing larger edits, when you want to work on your changes privately before pushing them, and when you want to iterate rapidly and not wait for pull request previews to update.

Make changes with Git on your command line. In summary:

  1. Decide how you'll be making changes:

    1. Make changes directly to the main branch of your website repo (publishes changes immediately).

    2. Make changes to a branch (e.g. add-sarah-bio) of your website repo (allows previewing changes before publishing).

    3. Make changes to a fork of your website repo (allows previewing changes before publishing).

  2. Clone the appropriate repo to your computer and switch to the appropriate branch.

  3. Edit the cloned site on your computer with your favorite text/code editor.

  4. Commit and push the changes.

  5. If working from a branch or fork, make a pull request to your main website repo and merge when ready to publish.

Last updated