• 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

    带着疑问去思考,然后串联,进而归纳总结,不断追问自己,进行自我辩证,像侦查嫌疑案件一样看待技术问题,漆黑的街道,你我一起寻找线索,你就是技术界大侦探福尔摩斯
  • 相关阅读:
    element表格添加序号
    ZOJ 3822 Domination(概率dp)
    HDU 3037(Lucas定理)
    HDU 5033 Building(单调栈维护凸包)
    HDU 5037 Frog(贪心)
    HDU 5040 Instrusive(BFS+优先队列)
    HDU 5120 Intersection(几何模板题)
    HDU 5115 Dire Wolf(区间dp)
    HDU 5119 Happy Matt Friends(dp+位运算)
    C++ string详解
  • 原文地址:https://www.cnblogs.com/cainiao-Shun666/p/14841045.html
Copyright © 2020-2023  润新知