Monday, June 23, 2014

git error: object directory does not exist; check .git/objects/info/alternates.

Being an idiot, I have deleted the entire content of the C:\Users\nnkrepelja\.r10k\git folder.... with dire consequences, each time i do a "git add" I get the error
git error: object directory does not exist; check .git/objects/info/alternates.
Restoring the content of the cache fixes the issue.
Question: what is this mysterious .git/objects/info/alternates ?
Here http://git-scm.com/docs/gitrepository-layout.html it claims that you can borrow objects from other repositories.... sounds a bit iffy, and it's not my case really...
Git is very powerful but it takes a looong learning curve....in the meantime, don't play around too much, you touch it you break it...


No comments: