Skip to content

Instantly share code, notes, and snippets.

@tmbrbr
tmbrbr / github_big_push.sh
Last active January 8, 2026 14:37
Upload large repos to Github
#!/bin/bash
BRANCH=foxhound
CHUNK_SIZE=100000
REMOTE=tmbrbr
echo Retrieving Hashes
HASH_LIST=$(git rev-list --topo-order --reverse refs/heads/${BRANCH} | awk "NR % ${CHUNK_SIZE} == 0")
for HASH in $HASH_LIST;