title: how to answer to runtime questions with shell script and expect
body: <p>When I do</p>
  
  <pre><code>git push
  </code></pre>
  
  <p>I get the command prompt like</p>
  
  <pre><code>Username for 'https://github.com':
  </code></pre>
  
  <p>then I enter my username manually like</p>
  
  <pre><code>Username for 'https://github.com': myusername
  </code></pre>
  
  <p>and then I hit Enter and I get prompt for my password</p>
  
  <pre><code>Password for 'https://myusername@github.com':
  </code></pre>
  
  <p>I want the username to be written automatically instead of manually having to type it all the time.
  i tried expect but could not use it</p>
  
  <p>can anyone help me to write a shell script for it?plz:)</p>