You may want to higher version of Git if you use Visual Studio Code (a.k.a. vscode) - its version will be Git 2.x probably. In that case, you can install by WANDisco repo package easily.

STEP 1. Install WANDisco repo package

yum -y install

You can try below if above does not work

yum -y install

STEP 2. Install the latest version of Git 2.x:

yum -y install git

STEP 3. Verify the version of Git that was installed:

git --version

STEP 4. Set git commit username and email address type

git config --global "Your Name"
git config --global ""

To verify the changes:

git config --list

Output: name

The configuration settings are stored in the ~/.gitconfig file

As of  , I was able to see its version 2.22.0 for your information.