Hello I have been meaning to get around to this for a while now, but I would like to use git to maintain some typo3 development sites. I did some digging around and the most informative (chromium translated site) info on the subject isn’t clear but did make me think. I’d like to know how to setup a git managed repo and if there are some/other folders that I should ignore when setting up the repo, what I should be wary of, best practices, etc. I have decided that with each version, a db dump would be done separately which corresponds with the milestone because as of now I’m not sure how to deal with this aspect of CMS versioning.
Share
There’s is typical
.gitignoreKeep in mind that when using
TYPO3withgityou should not install any extension on the remote withExtension Manager!Instead import ext locally, install it locally and then commit and push ext’s files and modified
localconf.phpto remote server.At the end of the
localconf.phpincludelocalconf_local.php(ignored)It will allow to override ie. credentials for DB, or custom
ImageMagickpath without changing the originallocalconf.php. Each dev in the team of course writes his own values tolocalconf_local.php.Typical TYPO3 folders ignored in
.gitignoreshould be created manually at each instance ie.typo3tempfileadmin/user_uploadOf course you need also download TYPO3 sorces (
typo3,t3libfolders) – there is no bigger sense to keep them under version control.Other things, like
uploadsshould be downloaded manually from the remote, so it’s best to write a script which will pack it and every developer will have possibility to download it with some link. You can’t add this to git repo as these files are just created while creating the content element, so if you won’t ignore them you risk a huge merging conflict soon.