fatal: could not read Username for 'https://github.com': No such file or directory
·
在创建git仓库时遇到问题
github提示:
git init
git add README.md
git commit -m “first commit”
git remote add origin https://github.com/caihuijian/pro_designpattern.git
git push -u origin master
在执行
git push -u origin master
出错:
fatal: could not read Username for ‘https://github.com‘: No such file or directory
百度了,貌似是某些版本的git bash的bug
修正分支为
git remote set-url origin git@github.com:caihuijian/pro_designpattern.git
继续执行
git push -u origin master
即可
注意替换自己的版本库地址
更多推荐
已为社区贡献3条内容
所有评论(0)