git-sizer computes various size metrics for a local Git repository, flagging those that might cause you problems or inconvenience. Is the repository too big overall? Ideally, Git repositories should be under 1 GiB, and (without special handling) they start to get unwieldy over 5 GiB. Big repositories take a long time to clone and repack, and take a lot of disk space. Avoid storing generated files (e.g., compiler output, JAR files) in Git. It would be better to regenerate them when necessary, or store them in a package registry or even a fileserver. Avoid storing large media assets in Git. You might want to look into Git-LFS or git-annex, which allow you to version your media assets in Git while actually storing them outside of your repository. Avoid storing file archives (e.g., ZIP files, tarballs) in Git, especially if compressed. Different versions of such files don't delta well against each other, so Git can't store them efficiently.

Features

  • By default, git-sizer outputs its results in tabular format
  • By default, only statistics above a minimal level of concern are reported
  • git-sizer is in regular use and is still under active development
  • Build and install from source
  • Avoid storing log files and database dumps in Git
  • Consider using Git-LFS for storing your large files

Project Samples

Project Activity

See All Activity >

Categories

Git

License

MIT License

Follow git-sizer

git-sizer Web Site

Other Useful Business Software
Auth0 for AI Agents now in GA Icon
Auth0 for AI Agents now in GA

Ready to implement AI with confidence (without sacrificing security)?

Connect your AI agents to apps and data more securely, give users control over the actions AI agents can perform and the data they can access, and enable human confirmation for critical agent actions.
Start building today
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of git-sizer!

Additional Project Details

Programming Language

Go

Related Categories

Go Git Software

Registered

2022-12-19