Git setup of AEM project | Community
Skip to main content
Level 2
August 9, 2021
Solved

Git setup of AEM project

  • August 9, 2021
  • 2 replies
  • 1492 views

Hi Community,

 

I've created project using maven archetype.

 

Now I want to sync the codebase with git. Do I need to push the entire project codebase to git repo or there is any .gitignore specific for AEM project ?

 

Please help to answer.

 

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by arunpatidar

Hi,

Please check sample AEM project https://github.com/arunpatidar02/aemaacs-aemlab

2 replies

Umesh_Thakur
Community Advisor
Community Advisor
August 9, 2021

I think you should be removing the content module from the main project and then commit entire project to git. Since content module will have the authored content so every time you will deploy the change, everything authored on the pages will be overwritten and by the time its size will also grow so again it will take lots of time to deploy your change. Same thing is applicable also to assets.

So it will be better to keep only code base along with some configs and templates components as part of your git repo.

 

Hope this will help.

Umesh Thakur

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
August 9, 2021

Hi,

Please check sample AEM project https://github.com/arunpatidar02/aemaacs-aemlab

Arun Patidar
Level 2
August 9, 2021
Thanks 🙂