The โRecommended Wayโ really depends on what you want to do with the project. Typically, there are three options:
- checking only those files that are necessary to create a project
- Add files that reflect development settings (such as project files that store the names of currently displayed files in editors).
- generated files to take a complete snapshot of the status of the project.
With the latter, you may run into problems with timestamps (while git might be told to learn something about commit-times - see Checking the old file WITH original create / modified timestamps , few do). Without a system that retrieves files using their original timestamps, you end up with a set of files that require recompilation every time you commit.
Even saving settings files can be problematic if you move files to another part of the file system (or try to share files with others). A.
So ... use .gitignore to filter out files that are not needed for assembly. But check that you can successfully build using the new check.
source share