title: Bash script to automate Git pull
body: <p>I want to automatically pull from Git. For some reasons it is not possible to automate the password thing in the server I am using. So it needs to be done by a Bash file. Now my Bash coding is not that good. Then it is possible to enter the passphrase for the SSH key. But I have really no clue what to do...</p>
  
  <p><code>#!/bin/bash
  cd . public_html/auto_deploy/foldername &amp;&amp; git fetch --all &amp;&amp; git checkout --force "origin/master"</code></p>
  
  <p>The above is not working... And then it needs to enter the passphrase, and I have no idea what to do then... How can I do this?</p>