{"id":13587441,"url":"https://github.com/larsxschneider/git-repo-analysis","last_synced_at":"2025-03-17T06:31:54.527Z","repository":{"id":142912288,"uuid":"77141719","full_name":"larsxschneider/git-repo-analysis","owner":"larsxschneider","description":"Scripts to analyse large Git repositories.","archived":false,"fork":false,"pushed_at":"2019-06-06T12:55:26.000Z","size":45,"stargazers_count":148,"open_issues_count":3,"forks_count":39,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-02-27T19:22:28.617Z","etag":null,"topics":["analysis","git","repository-utilities"],"latest_commit_sha":null,"homepage":"http://larsxschneider.github.io/2016/09/21/large-git-repos","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/larsxschneider.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-12-22T12:11:20.000Z","updated_at":"2024-12-17T17:52:57.000Z","dependencies_parsed_at":"2023-03-29T00:07:15.684Z","dependency_job_id":null,"html_url":"https://github.com/larsxschneider/git-repo-analysis","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/larsxschneider%2Fgit-repo-analysis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/larsxschneider%2Fgit-repo-analysis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/larsxschneider%2Fgit-repo-analysis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/larsxschneider%2Fgit-repo-analysis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/larsxschneider","download_url":"https://codeload.github.com/larsxschneider/git-repo-analysis/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243847061,"owners_count":20357317,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["analysis","git","repository-utilities"],"created_at":"2024-08-01T15:06:12.895Z","updated_at":"2025-03-17T06:31:54.059Z","avatar_url":"https://github.com/larsxschneider.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# Git Repo Analysis Tools\n\nGit can become slow if a repository exceeds certain thresholds ([read this for details](http://larsxschneider.github.io/2016/09/21/large-git-repos)). Use the scripts explained below to identify possible culprits in a repository. The scripts have been tested on macOS but they should run on Linux as is.\n\n_Hint:_ The scripts can run for a long time and output a lot lines. Pipe their output to a file (`./script \u003e myfile`) for further processing.\n\n## Large by File Size\nUse the [git-find-large-files](git-find-large-files) script to identity large files in your Git repository that you could move to [Git LFS](https://git-lfs.github.com/) (e.g. using [git-lfs-migrate](https://github.com/git-lfs/git-lfs/blob/master/docs/man/git-lfs-migrate.1.ronn)).\n\nUse the [git-find-lfs-extensions](git-find-lfs-extensions) script to identify certain file types that you could move to [Git LFS](https://git-lfs.github.com/).\n\n## Large by File Count\nUse the [git-find-dirs-many-files](git-find-dirs-many-files) and [git-find-dirs-unwanted](git-find-dirs-unwanted) scripts to identify directories with a large number of files. These might indicate 3rd party components that could be extracted.\n\nUse the [git-find-dirs-deleted-files](git-find-dirs-deleted-files) to identify directories that have been deleted and used to contain a lot of files. If you purge all files under these directories from your history then you might be able significantly reduce the overall size of your repository.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flarsxschneider%2Fgit-repo-analysis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flarsxschneider%2Fgit-repo-analysis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flarsxschneider%2Fgit-repo-analysis/lists"}