How to create private repository

Click on new

Git

Give the repository name and click the private check box and Add a Readme file check box

Click on Create repository

Git

Next to the repository name, you can see its mentioned as private

Git

For private repository, you need to authenticate to clone the repo.

There are two types of authentication,

  • Using Personal Access Token(PAT)
  • Using SSH public/private keys

How to authenticate using Personal Access Token(PAT)

Lets generate the token

Remote vs local repo

Git

Youtube

Git part-2