title: Automatic git pull in bash script
body: <p>Is it possible to know whether new commits have occured on remote git server using git commands inside bash script? I need it for automatic getting changes from remote host only when they exist.</p>