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

2021-01-02  本文已影响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

上一篇 下一篇

猜你喜欢

热点阅读