Got the below error when i was trying to sync the latest code and also to get the Git latest version in my Virtual Desktop.

I forgot that my Virtual Desktop was not installed with latest git.
Followed the below steps and the issue is resolved.
Step 1: Click here to navigate to GitHub installation webpage.
Step 2: Click on Git for Windows installer and this will navigate to gitforwindows website.

Step 3: Click on Download to download the latest version of git.

Step 4: Go to Downloads and double click on the downloaded file.

Step 5: Click on Next to start the Git installation setup.

Step 6: Click on Next.

Step 7: Select Components (if required) and Click on Next.

Step 8: Click on Next.

Step 9: Choose the default editor used by Git and Click on Next.

Step 10: Click on Next.

Step 11: Click on Next.

Step 12: Click on Next.

Step 13: Click on Next.

Step 14: Click on Next.

Step 15: Click on Next.

Step 16: Click on Next.

Step 17: Click on Next.

Step 18: Click on Next.

Step 19: Click on Install.

Installation is in progress.

Step 20: Click on Finish to complete the Installation process.

Step 21: Relaunch the Command Prompt (cmd.exe) and type git version to see the git version.

Hope this fix helped you to resolve this issue.
Please share your valuable feedback on this article.