I\'m a Windows 10 user, using gitbash as a command prompt.
After I changed the branch to master
, suddenly I\'m struck with this error message.
I got this message when trying to execute git commands in crosh on a chromebook. The local files were on a removable drive (an SDXC card in this case). I fixed it by changing directory up and back into the repo's main directory:
$ cd ..
$ cd (my repo's directory)
And presto, git was working again. I've used this set up a lot, I have no idea what happened, other than maybe Chrome OS got confused and didn't know what was going on. But
$ pwd
worked fine before I fixed the issue, while the error was happening.