Spaces:
Sleeping
Sleeping
Download force_push.py from Bhishaj/MerchFlow-AI: direct link, hf CLI and curl.
- Browser
- Download file 334 Bytes
-
https://huggingface.co/spaces/Bhishaj/MerchFlow-AI/resolve/06e46fc04efab07fa5629577233f9308ff9fe061/force_push.py
- Command line
-
hf download hf://spaces/Bhishaj/MerchFlow-AI@06e46fc04efab07fa5629577233f9308ff9fe061/force_push.py
-
curl -L -o force_push.py https://huggingface.co/spaces/Bhishaj/MerchFlow-AI/resolve/06e46fc04efab07fa5629577233f9308ff9fe061/force_push.py
334 Bytes
| 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() | |