import subprocess subprocess.call("git pull origin main".split()) subprocess.call(["git", "add", "."]) subprocess.call(["git", "commit", "-m", "Add template files"])