atlassian-sourcetreedomino-designer-eclipse

Is the .git folder necessary in the database?


There is a .git folder inside my template database that wasn't there before AFAIK. It must have happened when I clicked Sync with On-Disk Project recently, but I really don't know exactly when or why.

It's rather annoying, because handling this folder can take quite some time when I compile the application.

Do I need this folder inside the database, and if not, how can I get rid of it, i.e. remove it from the database?


Solution

  • The .git folder and its content is of no use inside your database. The problem arises because the on-disk content of your database is at the same level as the .git folder. The .git folder is therefore imported into your database when you sync with the on-disk project.

    You should move the on-disk content of your database to a sub folder of your Git folder.

    Here's an example of the folder structure (using the OpenNTF Domino API Demo Database):

    enter image description here