Skip to content

How do I share my text with people?

To start the tutorial, we need to create a repository. The repository will serve as a place to store our text file.

To create a repository, please go to your GitHub account, select the “Repositories” tab and click on the green “New” button. Alternatively, you can click on this link.

In the newly opened page, please fill in the following fields:

  1. Set the repository name to git-tutorial

  2. Set the description to Git tutorial (optional)

  3. Make sure the visibility is set to Public (default)

  4. Uncheck the option Initialize this repository with a README

  5. Add .gitignore: Leave empty (default)

  6. Choose a license: Leave empty (default)

  7. Click on the green button “Create repository”

Congratulations, you have created your first GitHub repository! The repository is empty, so we need to add a file to it.

Issue #9

To add a file to the repository, please click on the “uploading an existing file” link. In the newly opened page, please drag and drop a text file to the drag and drop area. You can create the file on your computer using any available text editor. The file can contain any text you want, but usually the programmers like to put “Hello, World!”, so let’s follow the tradition. The filename does not matter.

Let’s not modify any other fields and click the green “Commit changes” button. Congratulations, you have added a file to the repository!