-1

I need to run this command:

git pull "https://user:password@bitbucket.com/user/repo.git" master

My problem, the password include the @ character, and I end with an error like: "host asd@bitbucket.com couldn't found" where "asd" is the last part of the password.

How can I get around this?

Note: I know the security issues about this method.

Rajib karmaker
  • 466
  • 1
  • 5
  • 16
lcjury
  • 1,158
  • 1
  • 14
  • 26

1 Answers1

1

Try to encode @-symbol like this %40 (Percent-encoding)

Vadik Sirekanyan
  • 3,332
  • 1
  • 22
  • 29