VS Code will use your machine's Git installation.
To use Git and GitHub in VS Code, first make sure you have Git installed on your computer.
you can sign into VS Code with your GitHub account。
cloning and publishing repositories from GitHub.
step 1.
Git installed on your computer
install GitHubDesktopSetup-x64.exe
202405
step 2. sign into VS Code with your GitHub account
.vscode login to github.com
open vscode
set edge to default
vscode login to github.com- via Settings Sync
https://code.visualstudio.com/docs/sourcecontrol/intro-to-git
https://blog.csdn.net/weixin_48024605/article/details/136037857 中文