KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Project files to consider including in .gitignore file
PRODUCT: 4D | VERSION: 20 | PLATFORM: Mac & Win
Published On: July 1, 2024

When working in a local project that is connected to a remote Git repository, it is recommended to keep a .gitignore file to exclude certain project directories or files from being copied to the remote repository. The default .gitignore file that is created (if the “Create .gitignore file” setting is enabled in 4D Preferences) in a new project already lists a few common folders and files that should be gitignored.



For example, the DerivedData directory is listed because it is a working folder that is automatically rebuilt by 4D, so there is no need to include it. Other project files that should be considered for the list are any files that contain sensitive information such as email addresses and passwords. For example, if there is a .txt file that contains login credentials for an SMTP server, that file should be gitignored. In addition, files that are substantially large in size (e.g. video files) should be considered for gitignore because it would be inefficient to track via Git.