git - 推送到 Bitbucket : ssh: Could not resolve hostname bitbucket. org:用户名: 没有这样的文件或目录

标签 git bitbucket

我尝试将我的工作推送到 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/

相关文章:

git aws.push 返回错误 403

git - "git pull"可以自动存储和 pop 挂起的更改吗?

git - AWS 代码提交 - 致命 : unable to access : The requested URL returned error: 403

Git hook 脚本失败,但脚本在终端中运行良好

git - 在我将 key 添加到 Bitbucket 后,服务器一直要求输入密码

tfs - 使用 Bit Bucket 中的 webhook 触发 VSTS/TFS 构建

Git 推送失败。错误 : RPC failed; result=56, HTTP 代码 = 0

git - 使用 'git branch' 命令显示当前的 git 分支

git - 使用 git/bitbucket 突然开始收到 ssh_exchange_identification 错误

svn - 通过代理连接到 BitBucket