This is a huge pain in the bum. I\'ve got this a few times before and I don\'t understand why. 5 mins ago the repo was fine and working, I move some files around (which is a
In case it helps anyone else, I just encountered the same issue and found that running git init in the project root fixed it.
git init