title: How to use expect and git clone?
body: <p>I'm trying to clone from my private git repository using expect to enter the password in one line. </p>
  
  <p>I'm trying something like:</p>
  
  <blockquote>
    <p>expect -c 'spawn git clone user@<strong>.</strong>.*<em>.</em>*:/var/.../repository.git/; expect "(yes/no)?"; send "yes\n"; expect "password:"; send "my_password\n";interact'</p>
  </blockquote>
  
  <p>But, it doesn't work. 
  What am I doing wrong? How can I fix the command line above?</p>
  
  <p>Thanks, Arshavdki Alexander</p>