Add convenience function for creating a new commit in a git repository.