Just run sh run.sh
License: Please credit this if you publish a repo made with this
import subprocess | |
from tqdm import tqdm | |
subprocess.run(['git', 'init'], stdout=subprocess.DEVNULL) | |
subprocess.run(['touch', 'git.txt'], stdout=subprocess.DEVNULL) | |
for i in tqdm(range(1, 10000001)): | |
with open('git.txt', 'w') as file: | |
file.write(str(i)) | |
subprocess.run(['git', 'add', 'git.txt'], stdout=subprocess.DEVNULL) | |
subprocess.run(['git', 'commit', '-m', f'Commit {i}'], stdout=subprocess.DEVNULL) | |
print("Git repository created with 10 million commits.") |
mkdir git | |
cd git | |
python3 ../run.py |