I'm working with a tool that from model generates some other files (e.g. SQL files, sample REST requests, ...)
The challenge is as I see those files as deleted as well as untracked.
I'm just guessing, that those files are deleted and recreated by the tool and somehow git is not able to identify that.
What I do is I add (git add
) those untracked files, git somehow rechecks and some files are changed to modified/not modified. Some files will stay deleted and untracked at the same time, so I have to repeat the addition as many times as there is that inconsistency. At the end it always results in expected result - all regenerated files are modified or not modified...
I'm wondering whether there is a way to help git with this, I cannot change the tool...
I read:
...but it's not my case - there is nothing like additional/changed whitespaces or case of filename (I'm on Windows). As it is generated by tool, it is pretty much the same all the time.