Navigation Menu

Skip to content

Push exceeding the 100mb limit #23284

Answered by lee-dohm
iMaisho asked this question in New to GitHub
Discussion options

You must be logged in to vote

If you used the git revert command, I can see where you ran into this problem. This is because git is designed very, very well to prevent people from losing information in their repositories. In almost all cases, a git repository  only grows , never shrinks. So, if I’m right about you using the git revert command, here’s what happened:

  1. You commit a file larger than 100MB
  2. You attempt to push and get the error
  3. You revert the commit with git revert which  creates a new commit where the large file doesn’t exist but leaves the large file in the repository’s history of commits
  4. You attempt to push and get the error again

There are also other ways that you could do the above that don’t necessar…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants