浏览git临时区域的磁盘使用情况

我想在git中控制我的主目录版本.

我已经使用ncdu找到最大的子目录,并从那里建立了一个.gitignore,我希望排除我的主目录中最大和最无用的部分(例如.gem /,.cache /,.cabal /,tmp /) .

在做了一个git add $HOME后,如何在磁盘使用方面浏览索引/缓存/暂存区?

理想情况下,我正在寻找像ncdu这样的交互式内容,我可以深入到子目录中.

最佳答案 将数据存储在git-dir中.

默认git存储数据在文件夹.git(git-dir)中.

The latest stash you created is stored in refs/stash; older stashes
are found in the reflog of this reference and can be named using the
usual reflog syntax (e.g. stash@{0} is the most recently created
stash, stash@{1} is the one before it, stash@{2.hours.ago} is also
possible).

点赞