Binsoi
Binsoi

Reputation: 383

How to reduce size of git repository after accidental push of large file size?

My colleague accidentally pushed some large size videos into our git repository.

  1. Does that make our git repo size large? even we removed videos did another push
  2. if so, how can we fix it to reduce the size when cloning our repository to a new PC?

i would appreciate any help, thanks!

Upvotes: 2

Views: 904

Answers (1)

NEOatNHNG
NEOatNHNG

Reputation: 934

  1. Yes, that means your repository will be large.
  2. You need to rewrite the history from the point where the videos where pushed. This only works good if your project was not published yet, because all people working with the repo will need to base their work on the newly revised history.

Upvotes: 5

Related Questions