Translations
Info
All page names need to be in English.
en da  de  fr  it  ja  km  nl  ru  zh

T3DD10/CoreTeamGitWorkshop

From TYPO3Wiki
Jump to: navigation, search
This page belongs to the Core Team (category Core Team)
  • change gerrit IP -- 192.168.100.75

CREATING A PROJECT (only needed for admins)

INITIAL SETUP FOR USERS

While doing setup you should do the initial git setup as well:

  • git config --global user.name "John Doe"
  • git config --global user.email johndoe@example.com

See http://progit.org/book/ch1-5.html for details.

ADDING A NEW REVIEW REQUEST

  • Create a new branch for the feature (we call it my_feature_branch, below we take TYPO3 4.1 as basis)
    • git branch my_feature_branch origin/TYPO3_4-1
  • We have to change to the new feature branch:
    • git checkout my_feature_branch
  • do your work
  • commit your changes (locally)
    • git commit -a
  • push the changes to the review system (in our case to branch TYPO3 4_1)
    • git push origin my_feature_branch:refs/for/TYPO3_4-1
  • Delete your feature branch locally
    • git branch -D my_feature_branch

CHECKING OUT A REVIEW REQUEST

  • Go to the gerrit web UI
  • copy and paste the git command to check out:
  • review and do changes
  • Now, in case you want to commit your reviewed changes again, do the following:
    • git commit --amend -a
    • git push origin HEAD:refs/for/TYPO3_4-1
  • That's it :-) Your changes are now appended as patch set 2.