2021-01-02git的一次问题解决-sshCould not resolve hostname master

# 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 [email protected]:/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 not resolve hostname master)