【问题标题】:Git - account not foundGit - 找不到帐户
【发布时间】:2012-10-03 23:52:24
【问题描述】:

我正在尝试推送到我的远程仓库。但我总是这样:

Account not found.
fatal: The remote end hung up unexpectedly

我在执行“git remote show origin”时得到相同的响应。 当我做 git remote -v 我得到这个:

origin  sls@slsapp.com:1234/fitzler/fitzler-web-app.git (fetch)
origin  sls@slsapp.com:1234/fitzler/fitzler-web-app.git (push)

我也成功地尝试了 ssh:

$ ssh sls@slsapp.com
Enter passphrase for key '/c/Users/jacobrohde/\.ssh\id_rsa':
Hi there! You are good to go. Just start pushing and pulling :)
Connection to slsapp.com closed.

这里有什么问题?

【问题讨论】:

  • 您联系过 Springloops 支持吗?他们网站上的电子邮件地址是 .
  • 其实我没有。我/我的印象是我的结果出了点问题。但我会尝试联系他们,看看他们怎么说。谢谢!
  • git 源中没有出现“找不到帐户”的消息,所以我同意你想要的是 Springloops。

标签: git


【解决方案1】:

当指定一个遥控器时,你通常会这样写:

user@host:repro

在您的情况下,您的主机使用不同的端口,您必须通过 :port 添加它,这迫使您使用更明确的方式:

ssh://user@host:port/repro

另请参阅: git remote add with other SSH port

你也可以看看man git fetch:

GIT 网址 通常,URL 包含有关传输协议的信息, 远程服务器的地址和存储库的路径。取决于 在传输协议上,某些信息可能不存在。

   Git natively supports ssh, git, http, https, ftp, ftps, and rsync
   protocols. The following syntaxes may be used with them:

   ·   ssh://[user@]host.xz[:port]/path/to/repo.git/ [...]
   An alternative scp-like syntax may also be used with the ssh protocol:

   ·   [user@]host.xz:path/to/repo.git/

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-08-15
    • 1970-01-01
    • 1970-01-01
    • 2017-05-26
    • 2015-04-11
    • 1970-01-01
    • 2016-09-29
    相关资源
    最近更新 更多