A bit funny, but it's possible this will help someone.
I just bought a new computer and my repository was in a Dropbox folder. Turns out the .git
folder was still syncing as I was trying to get to work. Once the folder finished syncing, everything was normal.