How to Clone from GitHub
You can clone a github repository in 2 ways. You can choose the type while cloning the repository.
HTTPS
git clone https://github.com/flyway/flyway.git
You may need to provide username/password if it is a private repository.
SSH
git clone [email protected]:flyway/flyway.git
You need to setup ssh keys in your PC and update in your github account.
Read more about
Adding SSH Keys
Which remote URL should I use?
Try cloning repository by https link git clone https://github.com/github_user_name/repository_name
And you can add the SSH key manually into your github account.
- Print your public SSH key
cat ~/.ssh/id_rsa.pub
- Copy the output
- Go to your github account setting. Select SSH Keys from Personal settings.
- Select new SSH Key and paste the output of
cat ~/.ssh/id_rsa.pub
. You can give some name to remember the computer name.