Skip to main content

Quickstart Repositories

✨ This page serves as Quickstart for working with repositories. For a more comprehensive reference about Working with GitHub repositories, refer to Creating and managing repositories

Create a repository

GitHub repositories store a variety of projects. In this guide, you'll create a repository and commit your first change.

  1. In the upper-right corner of any page, select +, then click New repository. Screenshot of the icon for creating a new repository from the + on the upper-right corner of any page.
  2. Type a short, memorable name for your repository. For example, "hello-world". Screenshot of the first step in creating a GitHub repository. The "Repository name" field contains the text "hello-world" and is outlined in dark orange.
  3. Optionally, add a description of your repository. For example, "My first repository on GitHub"
  4. Choose a repository visibility. In this course it must be Private
  5. Select Initialize this repository with a README.
  6. Click Create repository.

Commit change using Web Interface

A commit is like a snapshot of all the files in your project at a particular point in time.

  1. In your repository's list of files, select README.md. Screenshot of a list of files in a repository. A file name, "README.md", is highlighted with an orange outline.
  2. In the upper right corner of the file view, click pen icon to open the file editor. Screenshot of the "cCode" view.
  3. In the text box, type some information about yourself.
  4. Above the new content, click Preview. Screenshot of the "Preview" view for a file. A checkbox labeled "Show diff" is selected, and an addition to the file is indicated by a green line marker. Both are outlined in orange.
  5. Review the changes you made to the file. If you select Show diff, you will see the new content in green. Screenshot of the completed work.
  6. Click Commit changes. In the "Commit message" field, type a short, meaningful commit message that describes the change you made to the file

Sources

  1. Quickstart for repositories