Create the Remote Repository on GitHub

español

Now that you have what you need for Git and GitHub installed locally, let’s create the repository that will hold your new website.

gif of following the directions below

  1. On GitHub.com, create a new repository.
  2. Name your repository YOUR-USERNAME.GITHUB.IO

    The name of your repository will be part of the link to your website. If you use the naming convention we described, your web site will be served at that URL.

  3. Enter a description for your repository.
  4. Choose Public visibility.

    We recommend you create a public repository. Public repositories are free. Even if you select a private repository, your published website will be public.

  5. Select Initialize this repository with a README.
  6. Click Create repository.
Tell me why

About Repositories

A repository is synonymous with a project. This project will house your web page.

When you create your own repository, you will be the owner. This means you’ll have administrative and write access.

GitHub Pages is a free service that lets you host a website directly from your GitHub repository.

Enabling GitHub Pages

Remember that funny repository name, YOUR-USERNAME.GITHUB.IO, you typed when you created your repository? That funny name is special to GitHub Pages. It tells GitHub Pages that you want to publish the content on the master branch of this repository as a web page.

Technically speaking, any GitHub repository can be viewed as a website using GitHub Pages. All you need to do is access the repository settings and enable GitHub Pages.

Learn More About GitHub Pages

This fun 4 minute video describes GitHub Pages in more detail:

Stuck? Open an issue in the repository for this class and mention @githubteacher for help from one of the GitHub trainers!
Continue