git - 在 http auth 上使用 @ 字符进行 git pull
问题描述
我需要运行这个命令:
git pull "https://user:password@bitbucket.com/user/repo.git" master
我的问题,密码包含@字符,我以如下错误结束:“找不到主机 asd@bitbucket.com”,其中“asd”是密码的最后一部分。
我怎样才能解决这个问题?
注意:我知道有关此方法的安全问题。
解决方案
尝试像这样编码@-symbol %40
( Percent-encoding )
推荐阅读
- sql - postgres 是否允许在多列索引中使用空值?
- sql-server - 在 sqlmock 中测试 MSSQL 表值参数
- php - PHP 处理向 HTML 元素添加类
- java - 在 Maven 依赖项中使用时,Mockit 初始化失败
- aes-gcm - AES 256 GCM 与 php 5.6
- kubernetes - 错误:没有来自任何对等方的有效响应。错误:peer=undefined,status=grpc,message=Endorsement has failed
- python - Python:你能在 Python 的 IF 语句中打开和编辑 csv 文件吗?
- angular - 如何访问 angular9 中的嵌套 formArray 控件验证错误?
- java - 在不知道记录器实现的情况下使用 slf4j 在控制台中显示调试级别日志
- sql-server - 验证非键列依赖和传递依赖