Quantcast
Channel: How to find/identify large commits in git history? - Stack Overflow
Browsing latest articles
Browse All 14 View Live

Answer by milahu for How to find/identify large commits in git history?

to get a feeling for the "diff size" of the last commits in the git historygit log --statthis will show the diff size in lines: lines added, lines removed

View Article



Answer by Windel for How to find/identify large commits in git history?

Use the --analyze feature of git-filter-repo like this:$ cd my-repo-folder$ git-filter-repo --analyze$ less .git/filter-repo/analysis/path-all-sizes.txt

View Article

Answer by SvenS for How to find/identify large commits in git history?

For Windows, I wrote a Powershell version of this answer:function Get-BiggestBlobs { param ([Parameter(Mandatory)][String]$RepoFolder, [int]$Count = 10) Write-Host ("{0} biggest files:" -f $Count) git...

View Article

Answer by Aaron for How to find/identify large commits in git history?

Powershell solution for windows git, find the largest files:git ls-tree -r -t -l --full-name HEAD | Where-Object { $_ -match '(.+)\s+(.+)\s+(.+)\s+(\d+)\s+(.*)' } | ForEach-Object { New-Object -Type...

View Article

Answer by pdp for How to find/identify large commits in git history?

I was unable to make use of the most popular answer because the --batch-check command-line switch to Git 1.8.3 (that I have to use) does not accept any arguments. The ensuing steps have been tried on...

View Article


Answer by Vojtech Vitek - golang.cz for How to find/identify large commits in...

Try git ls-files | xargs du -hs --threshold=1M.We use the below command in our CI pipeline, it halts if it finds any big files in the git repo:test $(git ls-files | xargs du -hs --threshold=1M...

View Article

Answer by raphinesse for How to find/identify large commits in git history?

A blazingly fast shell one-linerThis shell script displays all blob objects in the repository, sorted from smallest to largest.For my sample repo, it ran about 100 times faster than the other ones...

View Article

Answer by Julia Schwarz for How to find/identify large commits in git history?

If you are on Windows, here is a PowerShell script that will print the 10 largest files in your repository:$revision_objects = git rev-list --objects --all;$files = $revision_objects.Split() |...

View Article


Answer by schmijos for How to find/identify large commits in git history?

If you only want to have a list of large files, then I'd like to provide you with the following one-liner:join -o "1.1 1.2 2.3" <(git rev-list --objects --all | sort) <(git verify-pack -v...

View Article


Answer by Warren Seine for How to find/identify large commits in git history?

You should use BFG Repo-Cleaner.According to the website:The BFG is a simpler, faster alternative to git-filter-branch for cleansing bad data out of your Git repository history:Removing Crazy Big...

View Article

Image may be NSFW.
Clik here to view.

Answer by skolima for How to find/identify large commits in git history?

I've found a one-liner solution on ETH Zurich Department of Physics wiki page (close to the end of that page). Just do a git gc to remove stale junk, and thengit rev-list --objects --all \ | grep...

View Article

Answer by friederbluemle for How to find/identify large commits in git history?

Step 1 Write all file SHA1s to a text file:git rev-list --objects --all | sort -k 2 > allfileshas.txtStep 2 Sort the blobs from biggest to smallest and write results to text file:git gc &&...

View Article

Answer by Mark Longair for How to find/identify large commits in git history?

I've found this script very useful in the past for finding large (and non-obvious) objects in a git...

View Article


How to find/identify large commits in git history?

I have a 300 MB git repo. The total size of my currently checked-out files is 2 MB, and the total size of the rest of the git repo is 298 MB. This is basically a code-only repo that should not be more...

View Article
Browsing latest articles
Browse All 14 View Live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>