您的位置:首页 > 理论基础 > 计算机网络

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

2015-08-17 21:03 831 查看
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 格式
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: