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
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Git setup of AEM project

neelanshb1
Level 2
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.

 

Thanks

1 Accepted Solution
Arun_Patidar
Correct answer by
Community Advisor
Community Advisor
3 Replies
Umesh_Thakur
Community Advisor
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

Arun_Patidar
Correct answer by
Community Advisor
Community Advisor