Ages ago (months, anyway) I initialized git-annex on a repository for reasons that now escape me. I thought I managed to get rid of it, but today I discovered that it is still there and any new directories in the repository are "annexed" -- if I create a new file anywhere in the repo, I can edit it once and then once I save, it is stored as a git-annex object:
index.html -> ../.git/annex/objects/z3/gQ/SHA256E-s17--a58d9605c9c692e1df6adbed7e3e5bd7655345326d0297b55fd1faa13ae16fbb.html/SHA256E-s17--a58d9605c9c692e1df6adbed7e3e5bd7655345326d0297b55fd1faa13ae16fbb.html
I read the instructions at Remove git-annex repository from file tree and tried git annex uninit
which got me this:
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.
So I deleted .git/annex
and ran git annex uninit
again. Tried to create a new file and ... it's a git annex object. I feel like I'm being haunted by a swamp thing. How on earth to I make it die?
I tried completely removing git-annex
in Synaptic, and still, a new file is immediately transformed into an object in .git/annex/
Double-check if you have any hook in your current Git repo
cd /path/to/my/repo/.git/hooks
Check also if git itself is a wrapper script.
Look for the git-annex
(which git-annex
)executable and remove it