Something went really wrong here. Allow me to give the background.
Today I try to push to our company default bare msysgit windows server and get a dreaded error message duplicated everywhere in SO about pushing to non-bare. I thought the message was weird, since my server was supposed to be bare. And yesterday it was working just fine.
Then I noticed the core.bare
is, somehow, set to false
! This was a repo inited with --bare
and it never had a ".git
" folder in it. And then I go check, and there it is, a .git folder, that to me appeared out of nowhere, to my dismay! I ask the only other person who could have done something there and, surely enough, he didn't.
edit: I just noticed it only happens with master
branch and the server's .git
seem to have been created on october 1st, which can be right since I don't push to master
that often.
The folder has 3gb and the bare folder, with all git structures beside the ghostly .git
, has 6gb. While my local .git has 16 gb, so I'm not sure what's going on there... Even more, I can't check git log
or git reflog
. Either setting bare to true or false I get same error fatal: bad default revision 'HEAD'
. And now I think it's already time to consider how to recover the repo...
But before I go through all the restoration dogma, I wonder:
- Is there some kind of git activity log so I can see all commands issued in git, and by who?
Couldn't find anything similar, and I fear there isn't.