Quick Start: Set up Git repository
Tip
You may want to adapt some commands that are shown here. Copy them by using the copy icon in the code block, paste them in a raw text file or editor, adjust the values. Then copy it from there to paste it into your terminal again.
-
Init directory and clone Repository
mkdir -p $HOME/work/TYPO3-Contribute && \ cd $HOME/work/TYPO3-Contribute && \ git clone https://github.com/typo3/typo3.git .
Copied! -
Set up Git specifics
Note
Remember that we use some conventions for username and email, see :ref:`prerequisite assumptions <quickstart-assumptions>.
git config user.name "John Doe" && \ git config user.email "john.doe@example.com" && \ git config remote.origin.pushurl \ ssh://john-doe@review.typo3.org:29418/Packages/TYPO3.CMS.git && \ git config remote.origin.push +refs/heads/main:refs/for/main
Copied!git config branch.autosetuprebase remote
Copied!mkdir -p .git/hooks && \ cp Build/git-hooks/commit-msg .git/hooks/commit-msg && \ cp Build/git-hooks/unix+mac/pre-commit .git/hooks/ && \ chmod +x .git/hooks/commit-msg && \ chmod +x .git/hooks/pre-commit && \ { echo '[BUGFIX|TASK|FEATURE|DOCS]' echo '' echo 'Resolves: #' echo 'Releases: main' } > $HOME/.gitmessage-typo3.txt && \ git config commit.template $HOME/.gitmessage-typo3.txt
Copied!