I found myself getting frustrated with Visual Studio Code (vsc) today on Ubuntu with GitHub. I had a repository that was properly cloned, yet vsc insisted that “The folder currently open doesn’t have a git repository”.
I installed the GitHub extension and confirmed my account was set in vsc and still no joy. Finally went to the terminal in vsc and ran git status and received the following:
fatal: detected dubious ownership in repository at '/media/sf_vm_share/notpublicrepo/vsc-projects/mytrailhead' To add an exception for this directory, call: git config --global --add safe.directory /media/sf_vm_share/notpublicrepo/vsc-projects/mytrailhead
so I did as suggested and then there was:
© Scott S. Nelson