Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

When I'm cloning my remote repository I call:

git clone 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?

share|improve this question
Duplicate on StackOverflow has more substantial answers. – Dan Dascalescu Sep 18 '14 at 23:14
up vote 7 down vote accepted

Put it in the URL.
share|improve this answer
This is what I tried, but this was not working. SYSTEM answers: sh.exe: event not found – Klaus Meier May 16 '11 at 6:51
That's because your shell is consuming the ! in your password. Escape or encode it. – Ignacio Vazquez-Abrams May 16 '11 at 6:55
is there an option to store the password in a file like on Star Team stcmd.exe co -epwdfile "pw.txt" -p "$user:@host" – Klaus Meier May 16 '11 at 7:17
I found an escape character for @ -> %40 for example but non for ! – Klaus Meier May 16 '11 at 7:42
>>> hex(ord('!')) '0x21' – Ignacio Vazquez-Abrams May 16 '11 at 7:48

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.