72108

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.

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

i would appreciate any help, thanks!

Answer1:

<ol> <li>Yes, that means your repository will be large.</li> <li>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.</li> </ol>

Recommend

  • Does naming an instance variable with underscore as a prefix have any side effects in Cocoa (Objecti
  • Retrieving large number of rows (more than 10 mil) in asp.net mvc application
  • Avoiding concurrency of Stored Procedures
  • Repository not found in git jenkins
  • Is it a best practice to only supply props shallowly in React components?
  • How to find the last occurrence of a certain observation in grouped data in R?
  • how to install coq contribs using git?
  • float:left paragraph followed by float:none paragraph
  • cannot convert from 'const char [3]' to 'char *' x100000 (Qt Creator C++ Windows
  • How to connect to a GitHub repo using libgit2?
  • Accessing Light userdata in Lua
  • how to git push with maven
  • Referencing external dependencies in GGTS by convention
  • force insert with spring data jpa
  • How to insert an Image in WORD after a bookmark using OpenXML
  • Hadoop shuffle uses which protocol?
  • Google cloud datastore emulator init data
  • “git push” doing the same as “git fetch” from the remote
  • finding greatest prime factor using recursion in c
  • Git cleanup/garbage collection on remote VSO git repository
  • Imageloader not loading image on real device
  • How to resolve dependencies from one gradle project to another gradle project in my Eclipse workspac
  • Error while using PDF Kit
  • EF 4.1 DBContext AutoDetectChangesEnabled
  • Is there any way to call saveCurrentTurnWithMatchData without sending a push notification?
  • Angular Bootstrap Carousel Slide Transition not working correctly
  • ImportError: cannot import name Pubnub
  • How can I get the choice “H2” back in the H2 consol?
  • uml Composition relationships to RDF and OWL
  • Javascript, Regex - I need to grab each section of a string contained in brackets
  • Silverlight DependencyProperty.SetCurrentValue Equivalent
  • Install PHP intl extension on MacOS
  • How to add git credentials to the build so it would be able to be used within a shell code?
  • Bug in WPF DataGrid
  • TFS: Get latest causes slow project reloading
  • Javascript Callbacks with Object constructor
  • Updated Ionic CLI but shows previous version (Windows)
  • How to make Safari send if-modified-since header?
  • log4net write single file for each call to log.info
  • How to push additional view controllers onto NavigationController but keep the TabBar?