pw@github.com/repo PW时以@结尾:使用用户连接到GitHub上通过HTTPS [英] Connecting to github by https using user:pw@github.com/repo when pw ends with @

查看:138
本文介绍了pw@github.com/repo PW时以@结尾:使用用户连接到GitHub上通过HTTPS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 GIT_REPO_URL =htt​​ps://开头$ GIT_ACCOUNT:$USER_PW@github.com/XXXX/xxx。语法

最近,所以它通过@结束我已经改变了我的密码。

Lately I have changed my password so it ends by @.

例如我的密码是123456789 @。

For example my password is 123456789@.

当我输入我的密码是算数的。 无法解析主机'@ github.com基本上回购网址现在等于 GIT_REPO_URL =https://开头myAccountName:123456789 @@ github.com/XXXX/xxx

When I input my password it says. Couldn't resolve host '@github.com' Basically the repo url is now equal to GIT_REPO_URL="https://myAccountName:123456789@@github.com/XXXX/xxx".

有谁知道,如何解决这个问题呢?

Does anyone know, how to solve this problem?

推荐答案

您必须URL连接code的用户名和密码。请参见 https://tool​​s.ietf.org/html/rfc3986 获得的百分号编码

You have to "URL encode" the username and password. See https://tools.ietf.org/html/rfc3986 for percent encoding.

@ 将连接codeD为%40 ,所以URL看起来像: https://开头myAccountName:123456789%40@github.com/XXXX/xxx

@ will be encoded as %40, so the url would look like: https://myAccountName:123456789%40@github.com/XXXX/xxx

下面是该工具: http://meyerweb.com/eric/工具/书房codeR / 或只使用ASCII表。)

Here is a tool for this: http://meyerweb.com/eric/tools/dencoder/ or just use an ASCII table ;).

替代将是使用混帐店用于存储凭据,使用的.netrc文件,或者使用SSH密钥。

Alternatives would be to use a git store for storing credentials, use the .netrc file, or use SSH keys.

这篇关于pw@github.com/repo PW时以@结尾:使用用户连接到GitHub上通过HTTPS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆