我想在 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/