I want to version control my home directory in git
.
I've used ncdu
to find the largest sub-directories and from there built a .gitignore
which I hope excludes the largest and most useless parts of my home directory (eg .gem/
, .cache/
, .cabal/
, tmp/
).
After doing a git add $HOME
, how can I browse the index / cache / staging area with respect to disk usage?
Ideally, I'm after something interactive like ncdu
where I can drill down into sub-directories.