在创建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
即可
注意替换自己的版本库地址