Git push origin master报错

fatal: could not read Username for 'https://github.com': No such file or directo

 

 

原因使用https方式的时候 在git remote add origin 的https url 里面没有用户名和密码

 

 

修改为如下:

git remote add origin https://{username}:{password}@github.com/{username}/project.git

https://github.com/kemayo/sublime-text-git/issues/176

或者直接修改 .git/config 隐藏文件 为git remote add origin https://{username}:{password}@github.com/{username}/project.git 格式

 

例子:https://sandea_98:123***@github.com/sandea/test.git 

相关文章:

  • 2022-12-23
  • 2021-12-08
  • 2022-01-05
  • 2021-08-15
  • 2022-12-23
  • 2021-09-13
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-23
  • 2022-01-20
  • 2022-12-23
  • 2022-01-24
  • 2021-07-15
  • 2022-12-23
相关资源
相似解决方案