Mark
#1
I have been learning and using Git and GitHub. But everything is gone.

I have no idea what happened.
Perhaps you closed/removed from the workspace the folder / project that was being source controlled?
Mark
#3
No. PlatformIO changed folder. And with extra folders I did not notice.