Skip to content

Instantly share code, notes, and snippets.

@rama982
Forked from Yash089610/push.sh
Last active April 11, 2024 23:30
Show Gist options
  • Save rama982/e14461baa2d253082713383d6a9b8fa3 to your computer and use it in GitHub Desktop.
Save rama982/e14461baa2d253082713383d6a9b8fa3 to your computer and use it in GitHub Desktop.
remote: fatal: pack exceeds maximum allowed size
step_commits=$(git log --oneline --reverse refs/heads/android14-6.1-2023-11 | awk 'NR % 500000 == 0')
echo "$step_commits" | while read commit message; do git push -f rama $commit:refs/heads/android14-6.1-2023-11; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment