报错

fatal: could not read Username for 'https://github.com': ······

原因

使用https方式的时候 在https url 里面没有用户名和密码

解决

使用sourcetree将git仓库地址改为https://{username}:{password}@github.com/{username}/{project}.git

或者直接修改 .git/config 隐藏文件里的url为https://{username}:{password}@github.com/{username}/{project}.git

相关文章:

  • 2021-11-30
  • 2021-06-20
  • 2021-07-22
  • 2021-07-17
  • 2021-08-14
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-23
  • 2021-07-08
  • 2021-12-10
  • 2021-11-17
  • 2021-04-06
相关资源
相似解决方案