how to setup git in VS code
Go to File > Preferences
Go to Settings
Type Git: Enabled(Chek in) in the search bar
Make sure that the box is ticked
............................................
git config --global user.name "yourusername"
git config --global user.email "[email protected]"