Shit! I accidentally commited large files to my repo

So I realized that a git repo I've been using at work had some older commits
with unnecessary LARGE files.  The large files were things like executable binaries & application logs that weren't properly ignored in the .gitignore file.  Committing & leaving the unintentionally committed files in git repos can impact stability & performance if left unchecked.
Image from Ilmari Kontulainen's blog















Unintentionally committing unnecessary & large files is a very common
mistake that most new & veteran git users make & don't realize until a few commits down the road.  I published some scripts & git commands that will help you list & remove unintentionally committed files from the git repos after the fact.  These scripts will be helpful for when you don't realize that you polluted or if you inherit an already polluted repo.



Use this gist - python script to list files in the .git repo by setting a file size "greater than" threshold. The run the git command to actually remove the files from the git repo

The script is pretty much straight forward but hit me up if you need a hand

-a


Comments

  1. But these advantages and the popularity that comes with it, come at 1xbet a value. The License considered one of the|is among the|is likely considered one of the} most costly available and the method to acquire it is prolonged and sophisticated. Many of our clients begin their business with a Curacao or Kahnawake license and then after some years, apply for a Malta online gambling license. The island of Malta is considered as the gold commonplace of iGaming licensing. The Malta Gaming Authority has been regulating gaming and issuing licensing because the that} early 2000s. Remember, all online gaming platforms must be registered and compliant with at least of|no less than} one jurisdiction.

    ReplyDelete

Post a Comment