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

时间:2023-03-09 04:05:36
使用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