exit with error if git fails
Merge pull request #72 from duthils/check-git

exit with error if git fails