我尝试将我的工作推送到 Bitbucket,并按照以下步骤操作:
git init
git remote add origin ssh://<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="197e706d597b706d7b6c7a727c6d37766b7e" rel="noreferrer noopener nofollow">[email protected]</a>/tardjo/test.git
git push -u origin --all
但是当我像上面那样git push
时,我收到以下错误:
ssh: Could not resolve hostname bitbucket.org:tardjo: No such file or directory
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
如何解决此错误?
最佳答案
尝试像这样添加 Remote
git remote add origin <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="ddbab4a99dbfb4a9bfa8beb6b8a9f3b2afba" rel="noreferrer noopener nofollow">[email protected]</a>:tardjo/test.git
关于git - 推送到 Bitbucket : ssh: Could not resolve hostname bitbucket. org:用户名: 没有这样的文件或目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23307594/