title: git push using crontab every hour prompting password
body: <p>I have created a shell script file for pushing a git repository automatically every hour using crontab like as follows,</p>
  
  <p>backup.sh</p>
  
  <pre><code>cd /home/user/share/my_project &amp;&amp; git commit -a -m "hourli crontab backup 'date'"
  cd /home/user/share/my_project &amp;&amp; git push origin branch1
  send mypassword\r
  wait
  </code></pre>
  
  <p>The issue with this code is, the git is using ssh and every time we run this code using <code>bash ./backup.sh</code> is asking password in the terminal. Not accepting the password specified in the shell script.</p>