S
S
Sergey2021-08-31 21:45:08
git
Sergey, 2021-08-31 21:45:08

Do site files on CMS get added to git?

Stupid lamer question
Tell me, I have a project on joomla. I want to learn how to use github. Is it advisable to add the entire site project to the repository? or enough files that I edit along the way (template, my custom plugins)? Or make a repository for a template, a repository for plugins?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
K
ksnk, 2021-09-01
@ksnk

For joomla, no. The resulting repository will be difficult (impossible) to use simply because of its gigantic size. The only option is some old version of the system that has been corrected in the source codes for many years, which is simply terrible to lose. I hope this is not the case :)
In general, you only need to place YOUR files in YOUR repository - those that do not come with the installation of the system and plugins, but are added manually.
It is necessary to check that the repository can be promoted into a workable project from scratch, for this a composer or some other installation packages are used.

P
Pavel, 2021-08-31
@mrusklon

git is used not only to view changes to some files, but also to deploy the project in a different place, it will be strange if the stub expands, right?)

D
Developer, 2021-08-31
@samodum

I think yes

A
archelon, 2021-09-02
@archelon

If you're not working with cms files directly then obviously not worth it.
As a rule, when working with cms, the “do not touch the core” rule applies: all additions and changes are in the theme and custom modules (plugins, components). Here we work with them in git. One project or separate for the topic and each module - according to the situation.

S
Sergei Tolkachev, 2021-09-17
@sergeytolkachyov

Purely theoretically, you can add all Joomla files. Nothing too terrible will happen. Huge folder with pictures. They put it in gitignor, all sorts of logs / caches, awstats, etc. Just when updating Joomla, you will have to push it to the repository and synchronize it with the local branch.
And so they wrote correctly above: do not touch the core. Your layouts can be in the folder with modules and plugins and, of course, in templates.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question