首页 > 解决方案 > 在 http auth 上使用 @ 字符进行 git pull

问题描述

我需要运行这个命令:

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

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

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

注意:我知道有关此方法的安全问题。

标签: githttp-authentication

解决方案


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


推荐阅读