git clone 私有项目

在clone的时候,在https://后面先加上github-username:github-password,再@项目的链接即可把项目clone下来。

git clone https://github-username:github-password@github.com/username/project.git
  • example:​​kyrle​​是我的用户名
git clone https://kyrle:abcdefg@gitee.com/kyrle/somethingyoulike.git

参考文章:

  • ​​Git clone 克隆私有项目​​