70 likes | 471 Views
GIT for Magento. A tutorial about GIT with some note for Magento. Outline. Magento Structure GIT workflow Naming rules for GIT + Magento Discussion. Magento Structure. Module Structure Controller Block Layout SQL setup. GIT workflow. Message format 50 for head 72 for remaining
E N D
GIT for Magento A tutorial about GIT with some note for Magento
Outline • Magento Structure • GIT workflow • Naming rules for GIT + Magento • Discussion
Magento Structure • Module Structure • Controller • Block • Layout • SQL setup
GIT workflow • Message format • 50 for head • 72 for remaining • What if longer? • GIT branching • Merge • Conflict + Resolve • GIT ignore
GIT Rules • Merge from origin/develop at the start of the work day • Commit your edits to your local repository at the end of the day • Never copy/rename (Eg. creating a .bak file) a file to create a restore point for temporary edits • Live/production site pulls must be authorised by the relevant party only after the staging release has been approved
GIT + Magento • Always give descriptive commit comments with ticket number/bug ID references where necessary • When you are finished with a branch, delete the branch, its files, its database and associated users • Never push to the remote repository master , develop
GIT + Magento • Naming branches • feature/namespace/module • feature/namespace/module/part • hotfix/namespace/module/<ticket no>-problem • Commit • <Folder>_<path> Message + Body