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: -

Now check the repo column and now click on Generate token
Now copy and it and paste it when the terminal asks for password.
本文介绍了在使用Git克隆GitHub私人仓库时,仅凭用户名和密码不够,需要获取并使用个人访问令牌替换密码的过程。指南包括生成和在终端中应用令牌的步骤。
1566

被折叠的 条评论
为什么被折叠?



