Note: I have no experience in Delphi programming.

*My problem:*

-I would like to put an old Delphi project of a collegue into a git repo.

-I read that [DCU files are compiler generated](https://stackoverflow.com/a/24666172/7559642) and even found a .gitignore template actually ignoring these files. 

-After putting everything together and cloning the repo, the Delphi 
compiler complains about missing DCU files in the fresh clone. 

-When I add the DCU files to git, everything compiles fine.

-The DCU files (at least most of them) get modified during the build process.

-Obviously, the DCU files mess up the git history and make diff's hard to read, but a project that doesn't compile is unacceptable.

What is going wrong here? Are there errors in the code when the DCU files are required for compiling? Is it correct that the compiler is asking for the files during build process? Any help is highly appreciated.