git - 浏览 git 暂存区的磁盘使用情况

标签 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).

关于git - 浏览 git 暂存区的磁盘使用情况,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40815525/

相关文章:

git - ohmyzsh 在我当前的 git 存储库中有一个额外的符号

git - Mac 版 Github 应用程序中的 "Cherry-pick"

git - Yocto 在成功构建 Bitbake 后抛出 git fatal error "Please tell me who you are"

Gitlab 删除旧提交

git:致命:索引包失败

git: 'log master..origin/master' 未按预期运行

linux - Git 服务器 - 自动(重新)推送

git log -L 没有差异

git - JGit 预接收 Hook

bash - 从通过 post-receive 钩子(Hook)创建的 ssh session 调用时,导出不起作用