【问题标题】:Using @ character on http auth for git pull [duplicate]在 http auth 上使用 @ 字符进行 git pull [重复]
【发布时间】:2018-08-08 15:29:04
【问题描述】:

我需要运行这个命令:

git pull "https://user:password@bitbucket.com/user/repo.git" master

我的问题,密码包含 @ 字符,我以如下错误结束:“找不到主机 asd@bitbucket.com”,其中“asd”是密码的最后一部分。

我怎样才能解决这个问题?

注意:我知道这种方法的安全问题。

【问题讨论】:

    标签: git http-authentication


    【解决方案1】:

    尝试像这样%40 (Percent-encoding) 编码@-symbol

    【讨论】:

      猜你喜欢
      • 2011-03-30
      • 2016-12-31
      • 1970-01-01
      • 2020-02-12
      • 2017-05-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-08-05
      相关资源
      最近更新 更多