`git blame` attributes half the file to a single "Reformat with Prettier" commit, hiding who really wrote the code.
BeginnerTroubleshootingRepository Health, Size and Performance
Answer
Likely causes → A bulk formatting commit touched every line, so it becomes the last change for all of them.
Diagnose → git log --oneline --format='%h %s' -- src/app.ts | grep -i format
Fix → Tell blame to skip it:
echo "a1b2c3d4e5f6... # Prettier reformat" >> .git-blame-ignore-revs
git config blame.ignoreRevsFile .git-blame-ignore-revs
git blame src/app.ts
GitHub's blame view honours .git-blame-ignore-revs at the repo root automatically.
Prevent → Do formatting changes in isolated commits and record their SHAs in .git-blame-ignore-revs immediately after merging.
More on Repository Health, Size and Performance
`git status` takes 8–15 seconds in a large monorepo.Intermediate`error: The last gc run reported the following. Please correct the root cause and remove .git/gc.log` followed by `warning: There are too many unreachable loose objects; run 'git prune' to remove them.`IntermediateEvery few commands Git prints `Auto packing the repository in background for optimum performance.` and the machine stutters.BeginnerA fresh clone downloads 4 GB, but the checked-out files are only 200 MB.Intermediate`git gc` or `git clone` dies with `fatal: Out of memory, malloc failed (tried to allocate 1073741824 bytes)` or `error: pack-objects died of signal 9`.Advanced`error: unable to create temporary file: No space left on device` followed by `fatal: failed to write object`.Beginner