#87176Add git setup script for core development
Description
Currently, several commands must be executed manually. Some of these, can’t just be copy-pasted, because user-specific options must be added to commands (email address, username, etc.).
A script can be added, which makes the setup easier.
Currently, you must execute the following commands:
git config user.name "Your Name"
git config user.email "your-email@example.com"
git config branch.autosetuprebase remote
# usually, not required
mkdir -p .git/hooks
cp Build/git-hooks/commit-msg .git/hooks/commit-msg
# make executable (usually not required)
chmod +x .git/hooks/commit-msg
# optional
cp Build/git-hooks/unix+mac/pre-commit .git/hooks/
chmod +x .git/hooks/pre-commit
git config url."ssh://<YOUR_TYPO3_USERNAME>@review.typo3.org:29418".pushInsteadOf git://git.typo3.org
# optional
git config commit.template ~/.gitmessage.txt
See https://docs.typo3.org/typo3cms/ContributionWorkflowGuide/Setup/Git/Index.html