码迷,mamicode.com
首页 > Web开发 > 详细

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

时间:2016-10-21 19:49:08      阅读:385      评论:0      收藏:0      [点我收藏+]

标签:原因   com   ext   https   net   知识   test   name   targe   

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 

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

标签:原因   com   ext   https   net   知识   test   name   targe   

原文地址:http://www.cnblogs.com/sandea/p/5985385.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!