'nuget.exe' is committed in my repo. One of the first thing my build script does is run nuget.exe update -self -NonInteractive
.
This replaces nuget.exe with the latest version before my build script starts using it to restore nuget packages.
The problem is that the changed version of nuget.exe shows up in my git changes. I don't want to accidentally commit it, so don't want it to be tracked.
I tried to add nuget.exe to my .gitignore file. But that ends up adding a deletion of nuget.exe to my changes. I don't want to delete the one in the repo, I need it because it can upgrade itself.
How can I stop changes to nuget.exe from showing up?