Contenu connexe Similaire à Code Matters - Eclipse Hackers Git Guide - EclipseCon France 2014 Similaire à Code Matters - Eclipse Hackers Git Guide - EclipseCon France 2014 (20) Code Matters - Eclipse Hackers Git Guide - EclipseCon France 20141. Code Matters
Eclipse Hackers Git Guide
EclipseCon France 2014
http://eclipse.org/jgit
http://eclipse.org/egit
http://code.google.com/p/gerrit
Matthias Sohn
(SAP)
Mickael Istria
(Red Hat)
4. Git at Eclipse
2010 2011 2012 2014
EGit and JGit
use Git and
Gerrit
Projects could
move to git
Gerrit
available for
all projects
CVS support
ended
2013
SVN support
ends
8. 1 Setup & Clone the example repository
2 Develop a feature
3 Work on branches in parallel
Git Exercises
15. 4 Merging, Rebasing, Resolving Conflicts
5 History view
6 Interactive rebase
7 Git blame
Git Exercises
18. Gerrit Code Review @ Eclipsehttps://git.eclipse.org/r/ is activated for most projects
Gerrit at Eclipse
Enabled for most projects
20. Roles in a Gerrit project
Contributor
Reviewer
Committer
Admin
25. +1 Build / test ok
-1 Build / test failed
+2 Accepted (committer)
+1 Looks ok
-1 Please improve
-2 Veto (committer)
Review feedback
26. Review each commit separately
Amend the commit to react on
feedback -> clean history
Latest commit can be submitted
29. Gerrit Exercises
1 Configure push to Gerrit
2 Fetch the latest state
3 Push change to Gerrit
4 Review change
5 Improve a change
6 Submit a change
7 New Changescreen
8 View Gerrit review notes
32. Evaluate This Session
Visit the voting machine
Use your badge to vote
1
2
http://blog.benjamin-cabe.com/2014/06/10/powering-eclipsecon-france-with-iot-magic