cloning a private repository error

For cloning a private repository simply putting the password and username will not be enough as the terminal will not tell but you will have to copy the personal_access_token using the github account and put it in the place of your password.

$ git clone https://github.com/username/repo.git
Username: your_username
Password: your_token

Further you can easily access your token through the steps given below: - 

cloning a private repository error_第1张图片


Now check the repo column and now click on Generate token 


Now copy and it and paste it when the terminal asks for password.

你可能感兴趣的:(github)