Install Git in Windows, go to Source Control of VSCode and click Download Git for Windows
or go to this https://git-scm.com/download/win
select Windows either 32/64 bit depending on your System
follow the steps, mostly click Next by default except VSCode as the editor instead of Vim
Go back to VSCode Source Control Tab or Reload it, you can start clean by opening a new VSCode Window
Open Terminal, New Terminal
at the Terminal on the bottom right of your screen, select type of terminal, click Git Bash
on your terminal
cd Desktopor any other location you want/required by the project likehtdocs, then clone a existing repo on GitHubgit clone "the remote repoopen a New Folder on VSCode and select the one you just cloned
start editing,
git add .,git commit -m "message",git pushthe first time you push, it will fail the authentication, go to VSCode Settings search for
git.terminalAuthenticationand uncheck the optiongit push again, there will be a pop-up to authorize authenticating Git via your browser, make sure the active browser is logged in to GitHub
Once you learned Git basics, it's better to use GitHub Desktop, it's a Git UI version, because you can see exactly the files that have changed and those you will be committing and in actual development, mostly you will be using branches to control the changes like you can sumbit a PR first
you may want to take a look at this
https://github.com/jdevstatic/my-github-desktop-commit-workflow
or simply use the basic Source Control of VSCode
