Prerequisites¶
We assume you have set up ssh (username and port) and git (username and email) already. You can copy and paste the following commands directly.
Get the Extension Builder¶
git clone git://git.typo3.org/TYPO3v4/Extensions/extension_builder.git extension_builder
Cloning the Extension Builder repository as a developer¶
git clone git://git.typo3.org/TYPO3v4/Extensions/extension_builder.git extension_builder
cd extension_builder
scp -p -P 29418 USERNAME@review.typo3.org:hooks/commit-msg .git/hooks/
git config remote.origin.pushurl ssh://review.typo3.org:29418/TYPO3v4/Extensions/extension_builder.git
git config remote.origin.push HEAD:refs/for/master
(Lots of output omitted)
You now have a clone of the Extension Builder repository, and you are ready to contribute.
What happens is the following:
- Clone the Extension Builder repository into the folder extension_builder.
- Change into the new directory
- Install the gerrit commit-msg hook for the distribution clone
- Configure review.typo3.org as default push target for submitting code for review (two lines)
Further reading¶
More information about working with git and gerrit for TYPO3 can be found in the TYPO3 wiki:
http://wiki.typo3.org/Git
... and in the forge wiki:
http://forge.typo3.org/projects/9/wiki/Working_with_Git_and_Gerrit
There's also a special chapter for contributors:
http://wiki.typo3.org/Contribution_Walkthrough_Tutorials
The project uses FLOW3 commit message rules:
http://flow3.typo3.org/documentation/coding-guidelines/?user_staticdocinclude_pi2[filepath]=flow3.codingguidelines&cHash=533b192f067e518dfb7d67008cb870db#id36288854