Git(五)

 


怎样简单的clone自己github的私人项目

目前来说,github的私人项目已经可以免费使用了一段时间,但是当你用普通的clone方式去下载到本地的时候,会发现提示clone失败,报错显示

remote: Repository not found.
fatal: repository ‘https://github.com/github-username/github-template-name.git’ not found

正常来说,clone的链接格式一般是

https://github.com/github-username/github-template-name.git

那么当你想要在本地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上,https方式不能直接clone私有仓库,会提示仓库不存在,ssh方式可以直接clone,那么例如:https://github.com/hxy/changgou.git,https方式clone私有项目需要采用下列方式:

https://hxy:123@github.com/hxy/changgou.git,其中github-username为github用户名:hxy,而不是登录邮箱,123为登录密码;

转载:https://blog.csdn.net/kalenE992/article/details/92029294

 

posted @   迷走神经  阅读(57)  评论(0编辑  收藏  举报
编辑推荐:
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
点击右上角即可分享
微信分享提示