Add check for changed files before attempting commit
Add check for changed files before attempting commit