Answer the question
In order to leave comments, you need to log in
Should the /bitrix and /upload folders be stored in git or not?
I am going to switch to working with projects on Bitrix through version control, and the question arose as to whether to store the data of the /bitrix and /upload files in the repository?
My opinion is that they have no place in the repository, but there are doubts about what to do with autonomy, because without a backup of the site on the same test site, the site cannot be deployed.
Answer the question
In order to leave comments, you need to log in
In the git, it is enough to store only the local folder and do all the work in it
/upload is definitely not, it will be different for everyone on test copies, and can grow up to several GB.
/bitrix is possible, but not all, but to make a bunch of exceptions for subfolders: cache, updates, backups (maybe some more I forgot).
You do not need to keep these folders. Below is my .gitignore
.DS_Store
Thumbs.db
/.idea/
/bitrix/*
/upload/*
/local/templates/tmpl/*.css
/sitemap*
node_modules/*
package-lock.json
.gitignore
/img/*
node_modules/*
package-lock.json
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question