Skip to content

Instantly share code, notes, and snippets.

@mthadley
Created September 25, 2017 21:27
Show Gist options
  • Save mthadley/df61ae49b03ab74c18422d2b60bf355d to your computer and use it in GitHub Desktop.
Save mthadley/df61ae49b03ab74c18422d2b60bf355d to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
COUNT="20000"
INTERVAL="2000"
while [[ $COUNT -gt 0 ]]; do
echo "Pushing ${COUNT}"
git push origin HEAD~"$COUNT"
COUNT=$(($COUNT - $INTERVAL))
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment