6

I'm using Git on Windows with LDAP. No issue so far.

When I'm cloning my remote repository I call:

git clone http://user@host.com/name/.git and I got a prompt for password

This is working. But now I will run a script and clone without password prompt.

How can I do this?

Klaus Meier
  • 63
  • 1
  • 1
  • 3
  • [Duplicate on StackOverflow](http://stackoverflow.com/questions/10054318/how-to-provide-username-and-password-when-run-git-clone-gitremote-git) has more substantial answers. – Dan Dascalescu Sep 18 '14 at 23:14

1 Answers1

11

Put it in the URL.

http://user:password@host.com/name/.git
Ignacio Vazquez-Abrams
  • 45,939
  • 6
  • 79
  • 84