Tech Tip: Reminder to setup .gitignore when using GIT for version control
PRODUCT: 4D | VERSION: 18 | PLATFORM: Mac & Win
Published On: January 16, 2020
When using GIT for source control of a 4D Database, it can be important to remember to setup the .gitignore file. The .gitignore file tells git what files or paths to exclude from source control.
Here is an example .gitignore file with some comments to help get you started:
# 4D project architecture ###################### /Data/* /Logs/* /Project/DerivedData/* /Project/BuildSettings/* /Settings/* /userPreferences*/* /Builds/* # Don't need the data file, indexes, symbols, or journal *.4DD *.4DIndx *.4DIndy *symbols.txt *.journal # dont need the 4d info component folder_reports Folder_Reports # include the following if you want to ignore the database settings *.4DSettings # OS generated files # ###################### .DS_Store .DS_Store? ._* .Spotlight-V100 .Trashes ehthumbs.db Thumbs.db |
The .gitignore file should be present at the root level of the repository. For more information please see the docs.