← Back to Git & GitHub

02. Repositories

GitHub Repos

#1GitHub Repos

Hold on, so what's the difference between Git and GitHub again?

Git is the tool that allows software engineers to track changes, while GitHub is the website that hosts Git repositories. Simply put, GitHub was built on top of Git, so we cannot use GitHub without Git.

Code is stored in repositories or repos on GitHub, which are like folders for your files and assets (e.g. images, videos, audios, fonts).

This is what a GitHub profile looks like - each account has dozens of public repositories.

#2Creating Your Repository

We'll start your version control journey by creating your first GitHub repository!

First, sign up for a GitHub account if you don't have one already at https://github.com

Look for the "New" button anywhere on your GitHub dashboard or profile.

#3Repository Setup

Once you've clicked "New", you'll be directed to the Create a new repository page.

Here, name your repo with anything you'd like (i.e., first-repo)! For now, we'll keep the repo public and not include a README file.

Click "Create Repository" and you'll see a page that includes next-step instructions!

#4Repository URL Format

Great! You've created a repository on GitHub!

The link of your repo will follow this format: https://github.com/[username]/[repo-name].git

Where: - [username] is your GitHub username - [repo-name] is the repository name

For example: https://github.com/s8rr/first-repo.git

The new repo is empty right now! Let's see how we can change that in the next exercise.