当前位置:   article > 正文

git token使用_git clone token

git clone token

2021年8月13日,git不再支持密码方式验证,而是建议使用token。

token生成

个人设置 > Settings > Personal access tokens > Generate new token

token使用

  • clone新的项目时,拼接token和http链接:https://$GH_TOKEN@github.com/owner/repo.git
  • clone新的项目时使用http链接,密码换成token
  • 已经clone的项目,在.git/config中将原来的http中加入token:https://$GH_TOKEN@github.com/owner/repo.git

声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop】
推荐阅读
相关标签
  

闽ICP备14008679号