目前来说,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自己的私人项目的方法。
本文详细介绍了如何在GitHub上克隆私有项目至本地,包括解决clone失败的问题,通过添加账号密码验证确保项目安全。

303

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



