1 2 3 4 5 6 7
import os import subprocess def deploy(branch): subprocess.run(f"git checkout {branch}", shell=True) os.system(f"git push {branch}")