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

报错

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

posted @ 2018-03-02 16:40  无所事事者爱嘲笑  阅读(301)  评论(0编辑  收藏  举报