I have an MVC website in VS that I'm publishing to inetpub. The source (git repo) is under c:\website and the running website is c:\inetpub\wwwroot\website.
After I publish the site and refresh a page, the site goes through all it's startup execution, and starts compiling whatever .cshtml views necessary. In task manager I see VS spike if it's open, and the processes under VS that's spiking is Git for Windows (32 bit). After I publish again without changing anything, the same process again spikes.
It seems that Git is running unnecessarily, and taking up a lot of CPU, sometimes to the point that I'll just close VS. Must there be changes being made in the repo, or is there some connection to the inetpub folder I'm publishing to?
Is there a way to have Git be much less aggressive, or have it ignore filesystem changes entirely, but still allow me to "Right click->Show History" or whatever?