Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges


Git setup of AEM project


Level 2

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.



1 Accepted Solution


Correct answer by
Community Advisor
0 Replies


Community Advisor

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


Correct answer by
Community Advisor


Please check sample AEM project