As you would do with a git-repository (keyword
.gitignore), you shoudn’t include files like the
c_cpp_properties.json in your synced folder or repo as they get created automatically anyway. Same goes for all folders starting with a dot in your projects directory (
.vscode, .pioenvs, .piolibdeps, ...). The only file out of those folders that you might want to sync (in my experience) is
.vscode/settings.json to share projects specific settings.
If you want to get started using git you should just download the git-client. With an installed git-client VSCode will automatically detect it and you will have a bunch of git-features build into the VSCode UI without the need to learn the git commands. However you still need to read some kind of tutorial and play around with it a bit, to grasps what it is doing (maybe take a look at those videos). Doing that you just learned how to use a local git repository. After that you can think about learning how to push that local repository to a remote one; maybe using Github, maybe Gitlab (which has private repositories for free users, GitHub doesn’t).
It might take some time, but it shouldn’t take too long as it isn’t as difficult as it might seem at a first glance… There are a lot of things you can do but only a few you need to start working with git (create a repo, commit to it, push it to a remote repo and sync or clone from remote…).
Once you got how git works, life will be much easier controlling versions of your software and of course syncing between multiple workstations and developers even in an “only private tinkering” environment, highly recommended