revert: refactor commit code into a new run_git_commit() function