很久以前(无论如何,几个月),我在存储库上初始化了 git-annex,原因现在我无法理解。我以为我设法摆脱了它,但今天我发现它仍然存在,并且存储库中的任何新目录都被“附加”了——如果我在存储库的任何地方创建一个新文件,我可以编辑它一次然后保存后,它会存储为 git-annex 对象:
index.html -> ../.git/annex/objects/z3/gQ/SHA256E-s17--a58d9605c9c692e1df6adbed7e3e5bd7655345326d0297b55fd1faa13ae16fbb.html/SHA256E-s17--a58d9605c9c692e1df6adbed7e3e5bd7655345326d0297b55fd1faa13ae16fbb.html
我阅读了从文件树中删除 git-annex 存储库中的说明,并尝试git annex uninit
了以下内容:
amanda@mona:talks$ git annex uninit
unannex 2018/test/Untitled Document ok
unannex 2018/test/index.html ok
unannex test/index.html ok
git-annex: Not fully uninitialized
Some annexed data is still left in .git/annex/objects/
This may include deleted files, or old versions of modified files.
If you don't care about preserving the data, just delete the
directory.
Or, you can move it to another location, in case it turns out
something in there is important.
Or, you can run `git annex unused` followed by `git annex dropunused`
to remove data that is not used by any tag or branch, which might
take care of all the data.
Then run `git annex uninit` again to finish.
于是我删.git/annex
了又跑git annex uninit
了。试图创建一个新文件并且......它是一个 git 附件对象。我觉得我被沼泽的东西缠住了。我到底怎么让它死?
我尝试git-annex
在 Synaptic 中完全删除,但一个新文件仍会立即转换为.git/annex/