GitLab CE clone project by web GUI: fatal: unable to access… Couldn't resolve host … because password has character “@”
I use GitLab CE.
I init a new repo by import URL:
In my password have a special character
@. Then error:
Cloning into bare repository '/var/opt/gitlab/git-data/repositories/vydn/myzip.git'... fatal: unable to access 'https://username:p@email@example.com/group/project.git': Couldn't resolve host 'firstname.lastname@example.org/group/project.git'
How to use password has character
@ in this context?
2 Solutions collect form web for “GitLab CE clone project by web GUI: fatal: unable to access… Couldn't resolve host … because password has character “@””
username & passwordseparately
https://github.com/foobar/SparkDataSystem --username <user> --password <pass>
Or, you can save your
passwordto reduce the number of time you must type your 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]
As mentioned in GitLab CE issue 7986
As per RFC 3986,
@is a special character and needs to be encoded like this:
https://xxxx:email@example.com/hello/ ^^^ |_ instead of '@'