| import git | |
| def git_clone(repo_url, destination_folder): | |
| try: | |
| repo = git.Repo.clone_from(repo_url, destination_folder) | |
| print(f"Repository {repo_url} cloned successfully.") | |
| except git.exc.GitCommandError as e: | |
| print(f"Error cloning repository {repo_url}: {e}") | |
| # Replace these with your desired repository URLs and destination folders | |
| repositories = [ | |
| {"url": "https://github.com/sunnyark/civitai-shortcut.git", "folder": "/content/microsoftexcel/extensions/civitai-shortcut"}, | |
| {"url": "https://github.com/Uminosachi/sd-webui-inpaint-anything.git", "folder": "/content/microsoftexcel/extensions/sd-webui-inpaint-anything"}, | |
| {"url": "https://github.com/continue-revolution/sd-webui-segment-anything.git", "folder": "/content/microsoftexcel/extensions/sd-webui-segment-anything"}, | |
| {"url": "https://github.com/mcmonkeyprojects/sd-dynamic-thresholding.git", "folder": "/content/microsoftexcel/extensions/sd-dynamic-thresholding"}, | |
| {"url": "https://github.com/AlUlkesh/stable-diffusion-webui-images-browser.git", "folder": "/content/microsoftexcel/extensions/stable-diffusion-webui-images-browser"}, | |
| #{"url": "https://github.com/nolanaatama/microsoftexcel-tunnels.git", "folder": "/content/imagination/extensions/microsoftexcel-tunnels"}, | |
| #{"url": "https://github.com/nolanaatama/microsoftexcel-controlnet.git", "folder": "/content/imagination/extensions/microsoftexcel-controlnet"}, | |
| #{"url": "https://github.com/fkunn1326/openpose-editor", "folder": "/content/imagination/extensions/openpose-editor"}, | |
| #{"url": "https://github.com/nolanaatama/microsoftexcel-3d-open-pose-editor", "folder": "/content/imagination/extensions/microsoftexcel-3d-open-pose-editor"}, | |
| #{"url": "https://github.com/nolanaatama/a1111-microsoftexcel-tagcomplete", "folder": "/content/imagination/extensions/a1111-microsoftexcel-tagcomplete"}, | |
| #{"url": "https://github.com/nolanaatama/a1111-microsoftexcel-locon", "folder": "/content/imagination/extensions/a1111-microsoftexcel-locon"}, | |
| #{"url": "https://github.com/Bing-su/adetailer", "folder": "/content/imagination/extensions/adetailer"}, # !After Detailer | |
| #{"url": "https://huggingface.co/Bingsu/adetailer", "folder": "/content/imagination/models/adetailer"}, # !After Detailer | |
| #{"url": "https://github.com/nolanaatama/microsoftexcel-roop", "folder": "/content/imagination/extensions/microsoftexcel-roop"}, # roop | |
| #{"url": "https://github.com/Coyote-A/ultimate-upscale-for-automatic1111", "folder": "/content/imagination/extensions/ultimate-upscale-for-automatic1111"}, # Ultimate SD Upscale | |
| ] | |
| for repo_info in repositories: | |
| git_clone(repo_info["url"], repo_info["folder"]) |