-1

I know that there are different variations of this questions asked, but I couldn't find one that pertains to my issue I am having....

I initialized my git repo under my ~/Documents/git_project.

I later moved the git_project folder to the ~/Dropbox directory.

After it was moved, I got the following error bad default revision 'HEAD' when I tried doing a git log.

I then moved it back to the ~/Documents/ folder to see if it would fix the issue, and I still get the same message.

Does anyone know how to fix this issue?

jub0bs
  • 60,866
  • 25
  • 183
  • 186
Eldan Shkolnikov
  • 441
  • 1
  • 6
  • 13
  • 2
    That is probably why I have been advising *against* using Git repo in a DropBox folder for years now: http://stackoverflow.com/a/26569980/6309 – VonC Dec 07 '14 at 19:17
  • Note: the error message will change with git 2.6: http://stackoverflow.com/a/32370516/6309 – VonC Sep 03 '15 at 08:43

1 Answers1

0

Sorry about the post. I fixed the issue. I never did a commit to begin with. It had nothing to do with moving the directory.

Eldan Shkolnikov
  • 441
  • 1
  • 6
  • 13