Spaces:
Running
Running
File size: 334 Bytes
c7dc4b9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | import subprocess
def main():
print("Executing force push...")
command = "git push --force space HEAD:main"
result = subprocess.run(command, shell=True, capture_output=True, text=True)
print("STDOUT:")
print(result.stdout)
print("STDERR:")
print(result.stderr)
if __name__ == "__main__":
main()
|