添加配置文件

windows下在用户家目录下,打开git bash执行以下命令

  • touch .git-credentials
  • vim git-credentials
  • 添加 https://userName:password@github.com userName替换为自己的git账户名,密码是git密码
  • 退出vim编辑器
  • 打开自己git仓库执行 git config –global credential.helper store

参考链接

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐