check whether staged changes exist before committing
Merge pull request #20 from JamesLavin/update-git-only-if-changed

check whether staged changes exist before committing