Push the Website to GitHub

Let's learn how to push our website to a GitHub repository and make updates.

We assume that you already have a GitHub account. If not, you can go to GitHub.com and click “Sign up for GitHub”.

Set up the GitHub repository

Since we’ve seen how our website looks, we can now follow the steps below to create a remote GitHub repository for our website, configure a local Git repository, and push our website files from the platform to the remote repository.

  1. To create a remote GitHub repository we can sign in to GitHub and click “New” in the Repositories section. We can configure the repository accordingly and then click “Create repository.”

    Note: We need to create a public repository so that it can be authenticated with Netlify later.

Get hands-on with 1400+ tech skills courses.