VSCode Version Control
The version control feature of VSCode (Visual Studio Code) is mainly implemented through integrated Git. It provides a complete set of interfaces and tools, allowing developers to conveniently manage code versions.
Next, we will use the built-in Git support to commit the changes we made earlier.
Open Source Control View
Select the "Source Control" view in the Activity Bar to open the version control feature.

Before use, make sure Git is installed on your computer. If Git is not yet installed, you will see a button in the "Source Control" view that you can click to install it.
Initialize the Git repository
Select the "Initialize Repository" button to create a new Git repository for the current workspace.

After initialization is complete, the "Source Control" view will display the changes you made in the workspace.
Stage changes and commit
Hover the mouse over a file and click the + icon next to it to stage the file's changes.

Hover over the "Changes" area and click the "Stage All Changes" button to quickly stage all files.
Commit changes
Enter a commit message, such as "Add hello function".
Click the "Commit" button to commit the changes to your Git repository.
