Log in to your Github account and find a green button to create a new repository. When you click on it, you should see this:

Fill in the repository name, and the description if you want to, and then click on “Create repository” button.
You should see this now:

In your computer’s terminal, create a directory that will contain your code and cd into it:

Now setup your repository, and push a very simple README file:

Refresh your repository page on Github, you should see the README.md file there:

On your computer, you should have a .git directory inside your directory.

Done! ✅