repo = Repo(...) git = repo.git git.push() //return empty string git.execute(["git","push"], with_extended_output=True) //the success message is in stderr_value instead of stdout.