Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git clone using http with user and password

Tags:

git

http

I try to use git clone http://user:[email protected] but I have some problems with adding user or password because the user is using email which contains an other @ and password is using an esclamation mark ( ! )

the command looks like http://[email protected]:[email protected]/git

This is not working - I tried 0x21password instead of !password but the system don't except this.

Any idea?

like image 483
Bernd Klaus Avatar asked May 17 '11 12:05

Bernd Klaus


People also ask

Why does git clone require password?

If Git prompts you for a username and password every time you try to interact with GitHub, you're probably using the HTTPS clone URL for your repository. Using an HTTPS remote URL has some advantages compared with using SSH. It's easier to set up than SSH, and usually works through strict firewalls and proxies.

How do I clone a git repository without username and password?

One way to clone a repository without having to enter your password would be to create an app-password and use it while cloning. That done, git won't prompt for user name and password. Mind that this is a URL and needs to be encoded as an URL then. This will leave the password in the git configuration.


1 Answers

have you tried http://user%40home.com:[email protected]/git

like image 143
Russell Troywest Avatar answered Oct 05 '22 23:10

Russell Troywest