700字范文,内容丰富有趣,生活中的好帮手!
700字范文 > fatal: could not read Username for 'https://github.com': No such file or directory

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

时间:2023-05-28 14:09:27

相关推荐

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 /caihuijian/pro_designpattern.git

git push -u origin master

在执行

git push -u origin master

出错:

fatal: could not read Username for ‘‘: No such file or directory

百度了,貌似是某些版本的git bash的bug

修正分支为

git remote set-url origin git@:caihuijian/pro_designpattern.git

继续执行

git push -u origin master

即可

注意替换自己的版本库地址

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。