Cloning a repo can be done with
git clone https://username:password@github.com/username/repository.git
However, when the password contains a forward slash, this doesn't work. Error is:
error: Couldn't resolve host 'klaus777:password' while accessing
https://klaus777:password/.@bitbucket.org/romeo/server-code.git/info/refs
fatal: HTTP request failed
If I URL Encode the Slash, I get the following error:
error: The requested URL returned error: 401 while accessing
https://klaus777:password%2F%2E@bitbucket.org/romeo/server-code.git/info/refs
fatal: HTTP request failed
Hence, the question: How do you deal with forward slash in password?
PS. If I remove password from URL and provide it when prompted, everything works just fine.