Skip to content

Instantly share code, notes, and snippets.

View BreezeRo's full-sized avatar

Vincent J. BreezeRo

  • Blockchain
  • New York City
View GitHub Profile
@BreezeRo
BreezeRo / gist:444a52dab0176d86ab9cd49c7235e32d
Created September 18, 2019 00:02 — forked from alexxxdev/gist:1dd024cadea091ca64154f9616d5739a
remote: fatal: pack exceeds maximum allowed size
# Adjust the following variables as necessary
REMOTE=origin
BRANCH=$(git rev-parse --abbrev-ref HEAD)
BATCH_SIZE=500
# check if the branch exists on the remote
if git show-ref --quiet --verify refs/remotes/$REMOTE/$BRANCH; then
# if so, only push the commits that are not on the remote already
range=$REMOTE/$BRANCH..HEAD
else