Skip to content

Instantly share code, notes, and snippets.

View nkitagawa-venn's full-sized avatar

Norton Kitagawa nkitagawa-venn

View GitHub Profile
@piki
piki / push-big-repo
Last active July 29, 2024 12:23
Script to push (mirror) a large repo to GitHub
#!/bin/bash -ex
#
# Push the current repository to GitHub, in small enough chunks that it
# won't exceed the pack-size limit
# Commit to start with, counting from the oldest. If the process fails,
# you can change this variable to restart from where it failed.
START_COMMIT=1000
# Number of commits to push at a time, counting from the oldest. If a