在使用Github push命令的时候出现了这样的错误:
ssh: connect to host github.com port 22: Bad file number
fatal: Could not read from remote repository.
最简单的办法是把git push命令中的origin换成https://github.com/USERNAME/PROJECTNAME.git(其中USERNAME是github的用户名,PROJECTNAME是你的repository名字)
即:
比较麻烦的解决办法是:http://stackoverflow.com/questions/7144811/git-ssh-error-connect-to-host-bad-file-number和http://rangercyh.blog.51cto.com/1444712/749490
ssh: connect to host github.com port 22: Bad file number
fatal: Could not read from remote repository.
git push时出现的错误 |
最简单的办法是把git push命令中的origin换成https://github.com/USERNAME/PROJECTNAME.git(其中USERNAME是github的用户名,PROJECTNAME是你的repository名字)
即:
git push https://github.com/USERNAME/PROJECTNAME.git master解决办法来自:http://superuser.com/questions/256152/another-ssh-connect-to-host-github-com-port-22-bad-file-number
比较麻烦的解决办法是:http://stackoverflow.com/questions/7144811/git-ssh-error-connect-to-host-bad-file-number和http://rangercyh.blog.51cto.com/1444712/749490
评论
发表评论