git - 为 Git Bash 配置代理凭据,但面临特殊字符问题
问题描述
想为 Git Bash 设置代理凭据,但我的密码末尾包含特殊字符,例如我的密码是 1122!!@@
我试过 proxy = http://username:1122!!@@@proxy.com:8xxx 和 proxy = http://username:1122%21%21%40%40@proxy.com:8xxx也无法工作。
而不是更改密码,我怎么能发短信让 .gitconfig 读取它?
解决方案
第二种形式(百分比编码)应该可以工作。
http.proxy
正如评论的那样,正确的设置是。
另一种方法是,为了测试,在你的 git bash 会话中设置环境变量:
export HTTP_PROXY=http://username:1122%21%21%40%40@proxy.com:8xxx
export HTTPS_PROXY=http://username:1122%21%21%40%40@proxy.com:8xxx
并从您的 git 配置中删除任何代理条目:git config -l|grep -i proxy
如果可行,您可以将这些export
指令添加到您的~/.bashrc
.
推荐阅读
- php - 点击后如何将功能从另一个页面加载到当前页面
这是我的第一页 index.php:
<body> <div id="nerde2"> </div> <div id="nerde1"> </div> <input type="button" value="ilk update"
- angular - 在 rxjs 6 中使用管道时如何访问先前可观察对象的参数?
- ruby-on-rails - 从活动管理表的下拉列表中选择多个选项时
- plugins - MobaXterm Portable + 插件 + 永久应用
- java - java.lang.NoSuchMethodError: org.apache.tomcat.JarScanner.scan(Ljavax/servlet/ServletContext;Ljava/lang/ClassLoader;Set;)
- sql-server-ce - SQL Server CE 插入多行
- python - python中的for循环错误
- php - 选择 PDO 查询不起作用
- restangular - 如何在restangular登录中使用包含“用户”?
- java - 将模型添加到表数组中的每个表,但仅填充迭代中的最后一个表