我使用 GitLab CE。
我通过导入 URL 初始化一个新的存储库:
https://username:[email protected]/group/project.git
我的密码中有一个特殊字符@
。然后报错:
Cloning into bare repository '/var/opt/gitlab/git-data/repositories/vydn/myzip.git'...
fatal: unable to access 'https://username:p@[email protected]/group/project.git': Couldn't resolve host '[email protected]/group/project.git'
如何使用带有字符的密码@
在这种情况下?
-
Send username & password
分别地
https://github.com/foobar/SparkDataSystem --username <user> --password <pass>
-
或者,您可以保存您的username
& password
减少您必须输入用户名/密码的次数
$ git config credential.helper store
$ git push http://example.com/repo.git
Username: <type your username>
Password: <type your password>
[several days later]
$ git push http://example.com/repo.git
[your credentials are used automatically]
See more
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)