preferred because the if suppresses all git commit errors, instead of the one error we need to suppress (commit with no changes)