AI Hints
Home›Git & GitHub Tutorial›Meet GitHub
Git & GitHub · Lesson 54 of 144

A Repository on GitHub

Creating it on the website.

⏱ 2 min read▶ Video at 58:13🎓 Free
Watch this lesson in the Git & GitHub courseWatch on YouTube ↗Full Git & GitHub course

First, you need a free account on github dot com. Sign up with the same email you gave Git, so your commits are linked to your profile. Then you create an empty repository, on the website.

A Repository on GitHub
From the video: A Repository on GitHub
  • Free account at github.com
  • Use the same email as git config
  • Create an empty repository

Creating a repository

On GitHub, click the plus button in the top corner, and choose new repository. Give it a name, like my site. Choose public, so anyone can see it, or private, just for you and people you invite. Leave the boxes for a readme and other files unticked, because our project already exists. Then click create repository.

  1. + menuNew repository
  2. Namemy-site
  3. Visibilitypublic or private
  4. Createleave it empty
Creating a repository
From the video: Creating a repository

The address

GitHub then shows a page with your repository's address. It looks like this. HTTPS, github dot com, your username, then the repository name, ending in dot git. This address is how your computer finds the remote. Copy it, because we need it next.

keyvalue
Addresshttps://github.com/sam/my-site.git
samyour username
my-sitethe repository
Copy itwe need it next

Summary

Create an account, then a new, empty repository, and copy its address. Next, connecting your local repository to it.

Key takeaways
  • github.com account
  • New repository, left empty
  • Copy the address
Next up: Connecting a Remote — git remote add