目前来说,github
的私人项目已经可以免费使用了一段时间,但是当你用普通的clone
方式去下载到本地的时候,会发现提示clone
失败,报错显示⬇️
remote: Repository not found.
fatal: repository ‘https://github.com/github-username/github-template-name.git’ not found
正常来说,clone
的链接格式一般是⬇️
那么当你想要在本地clone
自己的私人项目的时候,为了私人项目的安全,就需要加上账号与密码进行验证⬇️
git clone https://github-username:github-password@github.com/github-username/github-template-name.git
在clone
的时候,在https://
后面先加上github-username:github-password
,再@
项目的链接就可以正常的把项目clone
下来,这是相对比较简单的clone
自己的私人项目的方法。