Skip to content

Instantly share code, notes, and snippets.

#!/bin/python
import os
import json
import sys
import time
import re
import requests
@chenghongyao
chenghongyao / git_clone_recursive.py
Last active October 19, 2021 05:56
fast git clone
import os
import re
import sys
host_from = "https://github.com/"
# host_to = "https://github.com.cnpmjs.org/"
host_to = "https://hub.fastgit.org/"
pat0 = re.compile(r'\[submodule "(.+)"\]')