check commit_hash and read git changes from file