For our projects we are using software TwinCAT which is based on Visual Studio (this means it is managed using VS project files) and we got this problem:
By just opening project there are created changes in project files. These changes are unimportant identifiers or sums of Target device configurations and all these can be discarded. When undoing changes in TwinCAT, these changes are often redone by TwinCAT straight after undiong them with git so it is impossible to switch branches or pull commits without unloading project or using external tools.
Question is whether there is way to include undo command while checking out or pulling or whether these can be forced. I know this is terrible way of managing git and that there is possibility of loosing work.