I am trying to figure out why this is happening. Every time I run visual studio 2017 it continuously restarts git.exe which takes up 20% of cpu and 100 mb or ram. I am wondering if anyone could help to figure out why this is happening. Image below:

I am trying to figure out why this is happening. Every time I run visual studio 2017 it continuously restarts git.exe which takes up 20% of cpu and 100 mb or ram. I am wondering if anyone could help to figure out why this is happening. Image below:

Use Process Explorer: that will show you the command line associated with those git.exe process, as well as their parent process.
From the command-line, you can determine what is going on.
A similar thread (for a previous version of Visual Studio) suggested also to check the Process Monitor.