Is it possible to set up something in git so modification to a file would be ignored?
This would be like having .gitignore but for modified files instead of only newly added files. So cloning of repo gives you the file but if you modify it then it doesn't get checked-in by default.
Scenario
I have a repo for Unreal engine project. They have this large .umap binary file that gets modified all the time when user clicks something on map. This causes git to checkin this binary file and blow up the history. The .umap file must exist for project to function but I don't want people to checkin the modified file all the time. I would want people to actually go through hoops before they can submit change in this large binary file.