Hi @Preshak Kumar (INFOSYS LIMITED)
Thanks for the question and using MS Q&A platform.
I recommend checking out this thread, which discusses a similar issue: https://learn.microsoft.com/en-us/answers/questions/448101/invalid-git-configuration
If the solutions provided in the thread don't work for you, please feel free to let me know, and I'll be glad to assist you further.
Hope this helps. Do let us know if you any further queries.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.