美文网首页
2021-01-02git的一次问题解决-sshCould no

2021-01-02git的一次问题解决-sshCould no

作者: 左子穆 | 来源:发表于2021-01-02 18:32 被阅读0次

# git push master:dev 出现报错

ssh: Could not resolve hostname master: nodename nor servname provided, or not known

fatal: Could not read from remote repository.

Please make sure you have the correct access rights

解决方案

rm -rf .git

git init .

git remote add origin git@github.com:<username>/demo_app.git

git commit --allow-empty -m 'First commit'

git push origin master

【参考:https://stackoverflow.com/questions/16548173/cannot-push-to-github-ssh-could-not-resolve-hostname/16548443

相关文章

网友评论

      本文标题:2021-01-02git的一次问题解决-sshCould no

      本文链接:https://www.haomeiwen.com/subject/wuoeoktx.html