import os
sandbox.commands.run(
"git clone https://x-access-token:[email protected]/<owner>/<repo>.git /home/user/repo",
envs={"GITHUB_TOKEN": os.environ["GITHUB_TOKEN"]},
)
sandbox.commands.run("cd /home/user/repo && git status --porcelain=v2 --branch")
sandbox.commands.run('cd /home/user/repo && git add -A && git commit -m "Initial commit"')
sandbox.commands.run(
"cd /home/user/repo && git push origin main",
envs={"GITHUB_TOKEN": os.environ["GITHUB_TOKEN"]},
)