您的位置:首页 > 其它

使用gitflow流程完成功能时报错

2018-03-02 16:40 211 查看

报错

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

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: