SlideShare una empresa de Scribd logo
1 de 12
Descargar para leer sin conexión
EGit/Gerrit Hands-on training:
Installation and Configuration
Introduction
To use Git from Eclipse you need the EGit plug-in. With EGit you do nearly all of your Git-
related tasks. But for certain operations you may want to use the command-line Git.
In the tutorial session at EclipseCon the necessary software is distributed via a memory
stick. The paths in the description below are relative to the path of the location where you
copied the stick content to.
USB Stick
Copy the following folders from the USB Stick to your local hard disk:
● git_tutorial
● <folder matching your operating system>
The first folder contains
● Slides
● Instructions for the exercises
● Demo Gerrit installation in a zip (backup in case Wifi isn’t available)
● EGit 3.4 update site archive
The second folder contains (depends on operating system)
● Eclipse Standard Package 4.3.2 with all features you need for the exercises including
latest EGit 3.4.0 (shipped with Luna)
● Native Git installation
Install Eclipse Packages (with pre-installed features)
To save time we created Eclipse Standard 4.3.2 packages with all needed features pre-
installed:
● EGit / JGit : all features, 3.4
Take them from your copy of the USB stick. Simply unpack the package and start Eclipse
using eclipse/eclipse, if necessary you may need to adjust permGen and maximum
heap size in the eclipse.ini file.
In case there is a problem with the package for your platform you may try to use an existing
Eclipse installation and install EGit into it as described in the next section.
Manual EGit Installation (Backup)
To install EGit into an existing Eclipse installation (anything from 3.8 to 4.4 should work)
follow this section. For the sample project you will need an Eclipse installation having JDT
and PDE.
Install it from the following p2 repository archive on the USB stick:
● click “Archive…” and select local path to the archive on the memory stick:
○ <stick>/git-tutorial/egit-3.4/
org.eclipse.egit.repository-3.4.0.201406110918-r.zip and
install all features
● If you are preparing an Eclipse installation before the training you may install EGit 3.4
from http://download.eclipse.org/egit/updates-3.4
Installing native Git (optional)
All exercises in this tutorial can be done with EGit so you may skip installing native
git.
If you want to try native Git you may use it on the same repository you are working on
with EGit.
In case you want to use native Git for some reason here short instructions how to install it
1. Install command line git
If you install prior to EclipseCon session go to http://git-scm.com/download to find the
installation matching your operating system.
During EclipseCon session the installations will be provided on a memory stick.
a. Linux: install git using your favorite package manager
b. Mac: install git from
<stick>/mac-64/git-1.8.4.2-intel-universal-snow-
leopard.dmg
c. Windows: Install msysgit from <stick>/windows*/Git-1.9.4-
preview20140611.exe
During the installation leave all the options to their defaults besides the
installation directory.
Registration and Configuration
1. Eclipse User Account needed to use Gerrit server at Eclipse
In order to contribute to any Gerrit hosted repository you need an Eclipse user
account. If you are an Eclipse committer or if you can logon to Eclipse sites like
forums (http://www.eclipse.org/forums), Bugzilla (https://bugs.eclipse.org/bugs), Wiki
(http://wiki.eclipse.org/) you already have an Eclipse account.
○ If you forgot your password visit the registration page (https://dev.eclipse.org/
site_login/createaccount.php) to change it
○ Otherwise go to the registration page (https://dev.eclipse.org/site_login/
createaccount.php) and register for a new account.
1. Sign the Contributor agreement
Before your first contribution can be accepted, you need to electronically sign
the Eclipse Foundation Contributor License Agreement (CLA). You only have
to do this once, and it covers all Eclipse projects.
○ Log into the Eclipse projects forge;
○ Click on "Contributor License Agreement"; and
○ Complete the form.
2. Register to Gerrit
○ Logon to https://git.eclipse.org/r/ using the registered email address and
password
○ Note down the username; you will need it for Git access
○ Visit https://git.eclipse.org/r/#/settings/projects and configure a watch for
project “sandbox/egit-training”. Afterwards you can use the “My > Watched
Changes” link to get a list for changes pending in code review for the projects
you are watching.
URLs for the Example Repository used in this Training
This section contains a list of useful URLs. You do not need to check them now. The
exercises also contain the necessary URLs.
URLs for Eclipse Gerrit server on git.eclipse.org:
Browser access
○ Gerrit WebUI : https://git.eclipse.org/r/
○ use email address and password of your Eclipse account to logon
○ Browsing Git online using cgit: http://git.eclipse.org/c/sandbox/egit-training.git/
Git access
○ HTTPS protocol:
https://git.eclipse.org/r/sandbox/egit-training.git
○ find your username here
https://git.eclipse.org/r/#/settings/
○ generate the HTTP password here
https://git.eclipse.org/r/#/settings/http-password
○ find your username here
https://git.eclipse.org/r/#/settings/
○ if necessary generate a ssh key pair and upload the public ssh key to
https://git.eclipse.org/r/#/settings/ssh-keys
Build jobs
○ a verification build job is verifying all changes pushed for review, find the
verification build job here:
https://hudson.eclipse.org/egit/job/egit-training.gerrit/
○ Feel free to configure Mylyn Builds to watch the build job
If the network is down or slow or you are offline you may run a pre-configured
demo Gerrit locally. In that case first go through the instructions “3-demo-gerrit/
9_Starting-Demo-Gerrit” and then come back to this exercise. If you do the exercises
using the local demo Gerrit the URLs for git communication with Gerrit are different:
○ HTTP protocol:
http://localhost:8080/egit-training.git
○ Gerrit WebUI is then reachable under : http://localhost:8080/
○ there is no GitWeb included in the demo Gerrit installation
○ there is no Hudson included with the demo Gerrit
EGit Configuration
○ Windows only: HOME environment variable (if not set EGit will ask when
you use EGit for the first time). Please check if it is set to your user home
directory.
○ Hint: Git needs to know who (user & email) commits to a repository. Don’t
worry: when EGit needs this information for the first time it will ask you.
Communication Protocols
Git supports many communication protocols, for this tutorial we choose HTTP (section 4.
below). This choices provide both read and write access using the same URL to the central
example repository hosted on Gerrit running on git.eclipse.org .
HTTP configuration
○ open https://git.eclipse.org/r/#/settings/http-password and click Generate
Password to generate your HTTP password
○ you may then communicate over HTTP using the URL https://git.eclipse.org/r/
p/sandbox/egit-training.git and the credentials given on https://git.eclipse.org/
r/#/settings/http-password
Result
It is crucial to check that your HTTP configuration is correct. To ensure that try to clone the
example repository. You will need this repository to continue with the following exercises.
Clone the example repository and import projects
into Eclipse
● Open the “Git Repositories” view: Window > Show View > Other > Git > Git
Repositories
● Click Clone a Git repository in the git repositories view.
● Enter the URL https://git.eclipse.org/r/sandbox/egit-training and click Next.
● Click Next. You should see some branch names in the next dialog. Make sure all
shown branches are selected.
● Click Next. In the “Directory” field, choose a path where to store the local repository.
The default path can be configured in Preferences > Team > Git in the field “Default
Repository folder”
● Make sure the “Import all existing projects after clone finishes” checkbox is selected
● Click Finish
Configure Gerrit
When you use Gerrit as a server for the central repository you need some configuration
settings of your local repository.
● Normally do not directly push to the branch on the remote repository but into the
review queue. Before you push to Gerrit you have to configure that once for your
local repository.
● You may need another URL. This is not the case in our training setup.
● You should push changes with a change-ID line in the commit message. You can
configure the local repository such that EGit will always create a Change-ID.
● You may want to fetch the review notes from Gerrit (More details in another
exercise).
Gerrit configuration wizard
Open the node “Remotes” of your repository in the Git Repositories View. Select Gerrit
Configuration… on “origin”
You can keep the default values in the Wizard page:
Resulting Repository Configuration
You can check the result in the Configuration of the local repository. Select Properties on the
repository node in the Git Repositories View.
Get Familiar with the Example Project
● The example repository contains two projects.
○ org.eclipse.example.calc: contains a simple calculator
○ org.eclipse.example.calc.test:contains unit tests
○ Both projects contain launch configurations. Use them to start the calculator
or run the unit tests. Note that for Mac there is a specific launch configuration
(with the “Mac” in the name).
● You may browse the central example repository using cgit at:
http://git.eclipse.org/c/sandbox/egit-training.git/
Additional EGit configuration and useful views
EGit Documentation
The EGit user guide is bundled with the EGit feature, invoke it via
Help > Help Contents > EGit Documentation.
Git Workbench Toolbar and Menu
In order to simplify usage of the most frequently used Git actions the Git Command Group
can be activated to show a Git Workbench Toolbar and/or Menu
● right-click in the workbench toolbar area and click Customize perspective... ,
or, on a Mac, select Window -> Customize Perspective
● in the tab Command Groups Availability click Git, this will enable both the Git
workbench toolbar and menu
● in the tabs Toolbar Visibility and Menu Visibility you may configure which actions
should appear in the Git Workbench toolbar and menu
Repositories View
To get an overview on your git repositories open the Git Repositories View.
Select the example project and click Show in > Git Repositories
Under Remotes > origin you see the fetch and the just created push configuration. To see
the details select the URL and click Open Properties View. To see the complete repository
configuration, click the same menu entry on the repository node.
History View
To browse the history of the repository, open the History View: On the repository node in the
Git Repositories View click Show in History. Best you arrange the Repositories View and the
History View next to each other, as shown below.
Copyright © 2014 by S. Lay, M. Sohn

Más contenido relacionado

La actualidad más candente

Your own full blown Gerrit plugin
Your own full blown Gerrit pluginYour own full blown Gerrit plugin
Your own full blown Gerrit pluginDariusz Łuksza
 
Using Git in Eclipse - Eclipse Summit Europe 2010-11-03
Using Git in Eclipse - Eclipse Summit Europe 2010-11-03Using Git in Eclipse - Eclipse Summit Europe 2010-11-03
Using Git in Eclipse - Eclipse Summit Europe 2010-11-03msohn
 
How to plan and define your CI-CD pipeline
How to plan and define your CI-CD pipelineHow to plan and define your CI-CD pipeline
How to plan and define your CI-CD pipelineElasTest Project
 
Using Docker to build and test in your laptop and Jenkins
Using Docker to build and test in your laptop and JenkinsUsing Docker to build and test in your laptop and Jenkins
Using Docker to build and test in your laptop and JenkinsMicael Gallego
 
Tycho - Building plug-ins with Maven
Tycho - Building plug-ins with MavenTycho - Building plug-ins with Maven
Tycho - Building plug-ins with MavenPascal Rapicault
 
Biscuit: an operating system written in go
Biscuit:  an operating system written in goBiscuit:  an operating system written in go
Biscuit: an operating system written in goSeongJae Park
 
Install Qt/Qt Quick for Android devices
Install Qt/Qt Quick for Android devicesInstall Qt/Qt Quick for Android devices
Install Qt/Qt Quick for Android devicesPaolo Sereno
 
Git workshop 33degree 2011 krakow
Git workshop 33degree 2011 krakowGit workshop 33degree 2011 krakow
Git workshop 33degree 2011 krakowLuca Milanesio
 
Testing fácil con Docker: Gestiona dependencias y unifica entornos
Testing fácil con Docker: Gestiona dependencias y unifica entornosTesting fácil con Docker: Gestiona dependencias y unifica entornos
Testing fácil con Docker: Gestiona dependencias y unifica entornosMicael Gallego
 
Android Platform Debugging and Development
Android Platform Debugging and DevelopmentAndroid Platform Debugging and Development
Android Platform Debugging and DevelopmentOpersys inc.
 
Android with eclipse(git lab)
Android with eclipse(git lab)Android with eclipse(git lab)
Android with eclipse(git lab)Sun Malen
 
Introduction to Gitea with Drone
Introduction to Gitea with DroneIntroduction to Gitea with Drone
Introduction to Gitea with DroneBo-Yi Wu
 
Docker introduction in Hardware Company
Docker introduction in Hardware CompanyDocker introduction in Hardware Company
Docker introduction in Hardware CompanyEvan Lin
 
Tekton showcase - CDF Summit Kubecon Barcelona 2019
Tekton showcase - CDF Summit Kubecon Barcelona 2019Tekton showcase - CDF Summit Kubecon Barcelona 2019
Tekton showcase - CDF Summit Kubecon Barcelona 2019Christie Wilson
 
Write microservice in golang
Write microservice in golangWrite microservice in golang
Write microservice in golangBo-Yi Wu
 
Introduction to github using Egit
Introduction to github using EgitIntroduction to github using Egit
Introduction to github using Egitmatz_twt
 

La actualidad más candente (20)

Your own full blown Gerrit plugin
Your own full blown Gerrit pluginYour own full blown Gerrit plugin
Your own full blown Gerrit plugin
 
Using Git in Eclipse - Eclipse Summit Europe 2010-11-03
Using Git in Eclipse - Eclipse Summit Europe 2010-11-03Using Git in Eclipse - Eclipse Summit Europe 2010-11-03
Using Git in Eclipse - Eclipse Summit Europe 2010-11-03
 
How to plan and define your CI-CD pipeline
How to plan and define your CI-CD pipelineHow to plan and define your CI-CD pipeline
How to plan and define your CI-CD pipeline
 
Using Docker to build and test in your laptop and Jenkins
Using Docker to build and test in your laptop and JenkinsUsing Docker to build and test in your laptop and Jenkins
Using Docker to build and test in your laptop and Jenkins
 
Gerrit Workshop
Gerrit WorkshopGerrit Workshop
Gerrit Workshop
 
Gerrit Code Review
Gerrit Code ReviewGerrit Code Review
Gerrit Code Review
 
Tycho - Building plug-ins with Maven
Tycho - Building plug-ins with MavenTycho - Building plug-ins with Maven
Tycho - Building plug-ins with Maven
 
Biscuit: an operating system written in go
Biscuit:  an operating system written in goBiscuit:  an operating system written in go
Biscuit: an operating system written in go
 
Install Qt/Qt Quick for Android devices
Install Qt/Qt Quick for Android devicesInstall Qt/Qt Quick for Android devices
Install Qt/Qt Quick for Android devices
 
Git workshop 33degree 2011 krakow
Git workshop 33degree 2011 krakowGit workshop 33degree 2011 krakow
Git workshop 33degree 2011 krakow
 
Testing fácil con Docker: Gestiona dependencias y unifica entornos
Testing fácil con Docker: Gestiona dependencias y unifica entornosTesting fácil con Docker: Gestiona dependencias y unifica entornos
Testing fácil con Docker: Gestiona dependencias y unifica entornos
 
Android Platform Debugging and Development
Android Platform Debugging and DevelopmentAndroid Platform Debugging and Development
Android Platform Debugging and Development
 
Android with eclipse(git lab)
Android with eclipse(git lab)Android with eclipse(git lab)
Android with eclipse(git lab)
 
Introduction to Gitea with Drone
Introduction to Gitea with DroneIntroduction to Gitea with Drone
Introduction to Gitea with Drone
 
Docker introduction in Hardware Company
Docker introduction in Hardware CompanyDocker introduction in Hardware Company
Docker introduction in Hardware Company
 
Tekton showcase - CDF Summit Kubecon Barcelona 2019
Tekton showcase - CDF Summit Kubecon Barcelona 2019Tekton showcase - CDF Summit Kubecon Barcelona 2019
Tekton showcase - CDF Summit Kubecon Barcelona 2019
 
Write microservice in golang
Write microservice in golangWrite microservice in golang
Write microservice in golang
 
Introduction to github using Egit
Introduction to github using EgitIntroduction to github using Egit
Introduction to github using Egit
 
Golang online course
Golang online courseGolang online course
Golang online course
 
Github
GithubGithub
Github
 

Destacado

Donnelley business overview_fnancialservices
Donnelley business overview_fnancialservicesDonnelley business overview_fnancialservices
Donnelley business overview_fnancialservicesINFOinvest
 
Sky Grid: Project for CSIS Cafe
Sky Grid: Project for CSIS CafeSky Grid: Project for CSIS Cafe
Sky Grid: Project for CSIS Cafeguest2bf64e
 
Mobile app developers guide
Mobile app developers guideMobile app developers guide
Mobile app developers guidePrayukth K V
 
Daftar produk halal september 2011
Daftar produk halal september 2011Daftar produk halal september 2011
Daftar produk halal september 2011Bung2
 
Comobuscar gooogle
Comobuscar gooogleComobuscar gooogle
Comobuscar gooogleUCC
 

Destacado (6)

2012 cls-class Mercedes-Benz Benzel Busch
2012 cls-class Mercedes-Benz Benzel Busch2012 cls-class Mercedes-Benz Benzel Busch
2012 cls-class Mercedes-Benz Benzel Busch
 
Donnelley business overview_fnancialservices
Donnelley business overview_fnancialservicesDonnelley business overview_fnancialservices
Donnelley business overview_fnancialservices
 
Sky Grid: Project for CSIS Cafe
Sky Grid: Project for CSIS CafeSky Grid: Project for CSIS Cafe
Sky Grid: Project for CSIS Cafe
 
Mobile app developers guide
Mobile app developers guideMobile app developers guide
Mobile app developers guide
 
Daftar produk halal september 2011
Daftar produk halal september 2011Daftar produk halal september 2011
Daftar produk halal september 2011
 
Comobuscar gooogle
Comobuscar gooogleComobuscar gooogle
Comobuscar gooogle
 

Similar a Git Tutorial EclipseCon France 2014 - Git Exercise 01 - installation and configuration

Setting up Git.pptx
Setting up Git.pptxSetting up Git.pptx
Setting up Git.pptxtapanvyas11
 
Openstack contribution process
Openstack contribution processOpenstack contribution process
Openstack contribution processSyed Armani
 
OpenStack Contribution Process
OpenStack Contribution ProcessOpenStack Contribution Process
OpenStack Contribution Processopenstackindia
 
GIT training - advanced for software projects
GIT training - advanced for software projectsGIT training - advanced for software projects
GIT training - advanced for software projectsThierry Gayet
 
Introduction to git and Github
Introduction to git and GithubIntroduction to git and Github
Introduction to git and GithubWycliff1
 
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 9 - starting demo gerrit
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 9 - starting demo gerritGit Tutorial EclipseCon France 2014 - Gerrit Exercise 9 - starting demo gerrit
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 9 - starting demo gerritmsohn
 
Magento Docker Setup.pdf
Magento Docker Setup.pdfMagento Docker Setup.pdf
Magento Docker Setup.pdfAbid Malik
 
GeoServer Developers Workshop
GeoServer Developers WorkshopGeoServer Developers Workshop
GeoServer Developers WorkshopJody Garnett
 
Git intro hands on windows with msysgit
Git intro hands on windows with msysgitGit intro hands on windows with msysgit
Git intro hands on windows with msysgitGeshan Manandhar
 
Introduction to Git and Github - Google Developer Student Clubs CET, Trivandrum
Introduction to Git and Github - Google Developer Student Clubs CET, TrivandrumIntroduction to Git and Github - Google Developer Student Clubs CET, Trivandrum
Introduction to Git and Github - Google Developer Student Clubs CET, TrivandrumAbhijitNarayan2
 
Rejekts 24 EU No GitOps Pain, No Platform Gain
Rejekts 24 EU No GitOps Pain, No Platform GainRejekts 24 EU No GitOps Pain, No Platform Gain
Rejekts 24 EU No GitOps Pain, No Platform GainŁukasz Piątkowski
 
In this project, you will learn to use some of the team” features o.docx
In this project, you will learn to use some of the team” features o.docxIn this project, you will learn to use some of the team” features o.docx
In this project, you will learn to use some of the team” features o.docxbreaksdayle
 
Android Platform Debugging and Development at ABS 2014
Android Platform Debugging and Development at ABS 2014Android Platform Debugging and Development at ABS 2014
Android Platform Debugging and Development at ABS 2014Opersys inc.
 
Jumping in Jakarta Open Source Project Everything nobody tells you
Jumping in Jakarta Open Source Project  Everything nobody tells youJumping in Jakarta Open Source Project  Everything nobody tells you
Jumping in Jakarta Open Source Project Everything nobody tells youRoan Brasil Monteiro
 
Introducing Git and git flow
Introducing Git and git flow Introducing Git and git flow
Introducing Git and git flow Sebin Benjamin
 
Life of a Chromium Developer
Life of a Chromium DeveloperLife of a Chromium Developer
Life of a Chromium Developermpaproductions
 

Similar a Git Tutorial EclipseCon France 2014 - Git Exercise 01 - installation and configuration (20)

Setting up Git.pptx
Setting up Git.pptxSetting up Git.pptx
Setting up Git.pptx
 
Git and git hub basics
Git and git hub basicsGit and git hub basics
Git and git hub basics
 
Openstack contribution process
Openstack contribution processOpenstack contribution process
Openstack contribution process
 
OpenStack Contribution Process
OpenStack Contribution ProcessOpenStack Contribution Process
OpenStack Contribution Process
 
GIT training - advanced for software projects
GIT training - advanced for software projectsGIT training - advanced for software projects
GIT training - advanced for software projects
 
Introduction to git and Github
Introduction to git and GithubIntroduction to git and Github
Introduction to git and Github
 
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 9 - starting demo gerrit
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 9 - starting demo gerritGit Tutorial EclipseCon France 2014 - Gerrit Exercise 9 - starting demo gerrit
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 9 - starting demo gerrit
 
Magento Docker Setup.pdf
Magento Docker Setup.pdfMagento Docker Setup.pdf
Magento Docker Setup.pdf
 
GeoServer Developers Workshop
GeoServer Developers WorkshopGeoServer Developers Workshop
GeoServer Developers Workshop
 
Git intro hands on windows with msysgit
Git intro hands on windows with msysgitGit intro hands on windows with msysgit
Git intro hands on windows with msysgit
 
Git kelvin
Git   kelvinGit   kelvin
Git kelvin
 
Introduction to Git and Github - Google Developer Student Clubs CET, Trivandrum
Introduction to Git and Github - Google Developer Student Clubs CET, TrivandrumIntroduction to Git and Github - Google Developer Student Clubs CET, Trivandrum
Introduction to Git and Github - Google Developer Student Clubs CET, Trivandrum
 
Rejekts 24 EU No GitOps Pain, No Platform Gain
Rejekts 24 EU No GitOps Pain, No Platform GainRejekts 24 EU No GitOps Pain, No Platform Gain
Rejekts 24 EU No GitOps Pain, No Platform Gain
 
Eclipse - Installation and quick start guide
Eclipse - Installation and quick start guideEclipse - Installation and quick start guide
Eclipse - Installation and quick start guide
 
setting up a repository using GIT
setting up a repository using GITsetting up a repository using GIT
setting up a repository using GIT
 
In this project, you will learn to use some of the team” features o.docx
In this project, you will learn to use some of the team” features o.docxIn this project, you will learn to use some of the team” features o.docx
In this project, you will learn to use some of the team” features o.docx
 
Android Platform Debugging and Development at ABS 2014
Android Platform Debugging and Development at ABS 2014Android Platform Debugging and Development at ABS 2014
Android Platform Debugging and Development at ABS 2014
 
Jumping in Jakarta Open Source Project Everything nobody tells you
Jumping in Jakarta Open Source Project  Everything nobody tells youJumping in Jakarta Open Source Project  Everything nobody tells you
Jumping in Jakarta Open Source Project Everything nobody tells you
 
Introducing Git and git flow
Introducing Git and git flow Introducing Git and git flow
Introducing Git and git flow
 
Life of a Chromium Developer
Life of a Chromium DeveloperLife of a Chromium Developer
Life of a Chromium Developer
 

Más de msohn

Project Gardener - EclipseCon Europe - 2018-10-23
Project Gardener - EclipseCon Europe - 2018-10-23Project Gardener - EclipseCon Europe - 2018-10-23
Project Gardener - EclipseCon Europe - 2018-10-23msohn
 
News from Git in Eclipse - EclipseCon EU - 2016-10-26
News from Git in Eclipse - EclipseCon EU - 2016-10-26News from Git in Eclipse - EclipseCon EU - 2016-10-26
News from Git in Eclipse - EclipseCon EU - 2016-10-26msohn
 
Git journey from mars to neon EclipseCon North America - 2016-03-08
Git journey from mars to neon   EclipseCon North America - 2016-03-08Git journey from mars to neon   EclipseCon North America - 2016-03-08
Git journey from mars to neon EclipseCon North America - 2016-03-08msohn
 
Versioning large binary files with JGit, EGit and Gerrit
Versioning large binary files with JGit, EGit and GerritVersioning large binary files with JGit, EGit and Gerrit
Versioning large binary files with JGit, EGit and Gerritmsohn
 
News from Git in Eclipse - EclipseCon 2015 Europe
News from Git in Eclipse - EclipseCon 2015 EuropeNews from Git in Eclipse - EclipseCon 2015 Europe
News from Git in Eclipse - EclipseCon 2015 Europemsohn
 
Git missiontomars 2015-03-10
Git missiontomars 2015-03-10Git missiontomars 2015-03-10
Git missiontomars 2015-03-10msohn
 
News from EGit - Talk EclipseCon Europe 2014 - Ludwigsburg
News from EGit - Talk EclipseCon Europe 2014 - LudwigsburgNews from EGit - Talk EclipseCon Europe 2014 - Ludwigsburg
News from EGit - Talk EclipseCon Europe 2014 - Ludwigsburgmsohn
 
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 7 - new changescreen
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 7 - new changescreenGit Tutorial EclipseCon France 2014 - Gerrit Exercise 7 - new changescreen
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 7 - new changescreenmsohn
 
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 6 - submit a change
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 6 - submit a changeGit Tutorial EclipseCon France 2014 - Gerrit Exercise 6 - submit a change
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 6 - submit a changemsohn
 
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 5 - improve a change
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 5 - improve a changeGit Tutorial EclipseCon France 2014 - Gerrit Exercise 5 - improve a change
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 5 - improve a changemsohn
 
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 4 - review change
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 4 - review changeGit Tutorial EclipseCon France 2014 - Gerrit Exercise 4 - review change
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 4 - review changemsohn
 
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 3 - push change to gerrit
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 3 - push change to gerritGit Tutorial EclipseCon France 2014 - Gerrit Exercise 3 - push change to gerrit
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 3 - push change to gerritmsohn
 
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 2 - fetch the latest state
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 2 - fetch the latest stateGit Tutorial EclipseCon France 2014 - Gerrit Exercise 2 - fetch the latest state
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 2 - fetch the latest statemsohn
 
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 1 - configure for gerrit
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 1 - configure for gerritGit Tutorial EclipseCon France 2014 - Gerrit Exercise 1 - configure for gerrit
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 1 - configure for gerritmsohn
 
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 8 - view gerrit review ...
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 8 - view gerrit review ...Git Tutorial EclipseCon France 2014 - Gerrit Exercise 8 - view gerrit review ...
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 8 - view gerrit review ...msohn
 
Git Tutorial EclipseCon France 2014 - Git Exercise 07 - git blame
Git Tutorial EclipseCon France 2014 - Git Exercise 07 - git blameGit Tutorial EclipseCon France 2014 - Git Exercise 07 - git blame
Git Tutorial EclipseCon France 2014 - Git Exercise 07 - git blamemsohn
 
Git Tutorial EclipseCon France 2014 - Git Exercise 06 - interactive rebase
Git Tutorial EclipseCon France 2014 - Git Exercise 06 - interactive rebaseGit Tutorial EclipseCon France 2014 - Git Exercise 06 - interactive rebase
Git Tutorial EclipseCon France 2014 - Git Exercise 06 - interactive rebasemsohn
 
Git Tutorial EclipseCon France 2014 - Git Exercise 05 - history view
Git Tutorial EclipseCon France 2014 - Git Exercise 05 - history viewGit Tutorial EclipseCon France 2014 - Git Exercise 05 - history view
Git Tutorial EclipseCon France 2014 - Git Exercise 05 - history viewmsohn
 
Git Tutorial EclipseCon France 2014 - Git Exercise 04 - merging rebasing and ...
Git Tutorial EclipseCon France 2014 - Git Exercise 04 - merging rebasing and ...Git Tutorial EclipseCon France 2014 - Git Exercise 04 - merging rebasing and ...
Git Tutorial EclipseCon France 2014 - Git Exercise 04 - merging rebasing and ...msohn
 
Git Tutorial EclipseCon France 2014 - Git Exercise 03 - work on branches in p...
Git Tutorial EclipseCon France 2014 - Git Exercise 03 - work on branches in p...Git Tutorial EclipseCon France 2014 - Git Exercise 03 - work on branches in p...
Git Tutorial EclipseCon France 2014 - Git Exercise 03 - work on branches in p...msohn
 

Más de msohn (20)

Project Gardener - EclipseCon Europe - 2018-10-23
Project Gardener - EclipseCon Europe - 2018-10-23Project Gardener - EclipseCon Europe - 2018-10-23
Project Gardener - EclipseCon Europe - 2018-10-23
 
News from Git in Eclipse - EclipseCon EU - 2016-10-26
News from Git in Eclipse - EclipseCon EU - 2016-10-26News from Git in Eclipse - EclipseCon EU - 2016-10-26
News from Git in Eclipse - EclipseCon EU - 2016-10-26
 
Git journey from mars to neon EclipseCon North America - 2016-03-08
Git journey from mars to neon   EclipseCon North America - 2016-03-08Git journey from mars to neon   EclipseCon North America - 2016-03-08
Git journey from mars to neon EclipseCon North America - 2016-03-08
 
Versioning large binary files with JGit, EGit and Gerrit
Versioning large binary files with JGit, EGit and GerritVersioning large binary files with JGit, EGit and Gerrit
Versioning large binary files with JGit, EGit and Gerrit
 
News from Git in Eclipse - EclipseCon 2015 Europe
News from Git in Eclipse - EclipseCon 2015 EuropeNews from Git in Eclipse - EclipseCon 2015 Europe
News from Git in Eclipse - EclipseCon 2015 Europe
 
Git missiontomars 2015-03-10
Git missiontomars 2015-03-10Git missiontomars 2015-03-10
Git missiontomars 2015-03-10
 
News from EGit - Talk EclipseCon Europe 2014 - Ludwigsburg
News from EGit - Talk EclipseCon Europe 2014 - LudwigsburgNews from EGit - Talk EclipseCon Europe 2014 - Ludwigsburg
News from EGit - Talk EclipseCon Europe 2014 - Ludwigsburg
 
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 7 - new changescreen
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 7 - new changescreenGit Tutorial EclipseCon France 2014 - Gerrit Exercise 7 - new changescreen
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 7 - new changescreen
 
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 6 - submit a change
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 6 - submit a changeGit Tutorial EclipseCon France 2014 - Gerrit Exercise 6 - submit a change
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 6 - submit a change
 
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 5 - improve a change
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 5 - improve a changeGit Tutorial EclipseCon France 2014 - Gerrit Exercise 5 - improve a change
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 5 - improve a change
 
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 4 - review change
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 4 - review changeGit Tutorial EclipseCon France 2014 - Gerrit Exercise 4 - review change
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 4 - review change
 
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 3 - push change to gerrit
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 3 - push change to gerritGit Tutorial EclipseCon France 2014 - Gerrit Exercise 3 - push change to gerrit
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 3 - push change to gerrit
 
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 2 - fetch the latest state
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 2 - fetch the latest stateGit Tutorial EclipseCon France 2014 - Gerrit Exercise 2 - fetch the latest state
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 2 - fetch the latest state
 
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 1 - configure for gerrit
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 1 - configure for gerritGit Tutorial EclipseCon France 2014 - Gerrit Exercise 1 - configure for gerrit
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 1 - configure for gerrit
 
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 8 - view gerrit review ...
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 8 - view gerrit review ...Git Tutorial EclipseCon France 2014 - Gerrit Exercise 8 - view gerrit review ...
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 8 - view gerrit review ...
 
Git Tutorial EclipseCon France 2014 - Git Exercise 07 - git blame
Git Tutorial EclipseCon France 2014 - Git Exercise 07 - git blameGit Tutorial EclipseCon France 2014 - Git Exercise 07 - git blame
Git Tutorial EclipseCon France 2014 - Git Exercise 07 - git blame
 
Git Tutorial EclipseCon France 2014 - Git Exercise 06 - interactive rebase
Git Tutorial EclipseCon France 2014 - Git Exercise 06 - interactive rebaseGit Tutorial EclipseCon France 2014 - Git Exercise 06 - interactive rebase
Git Tutorial EclipseCon France 2014 - Git Exercise 06 - interactive rebase
 
Git Tutorial EclipseCon France 2014 - Git Exercise 05 - history view
Git Tutorial EclipseCon France 2014 - Git Exercise 05 - history viewGit Tutorial EclipseCon France 2014 - Git Exercise 05 - history view
Git Tutorial EclipseCon France 2014 - Git Exercise 05 - history view
 
Git Tutorial EclipseCon France 2014 - Git Exercise 04 - merging rebasing and ...
Git Tutorial EclipseCon France 2014 - Git Exercise 04 - merging rebasing and ...Git Tutorial EclipseCon France 2014 - Git Exercise 04 - merging rebasing and ...
Git Tutorial EclipseCon France 2014 - Git Exercise 04 - merging rebasing and ...
 
Git Tutorial EclipseCon France 2014 - Git Exercise 03 - work on branches in p...
Git Tutorial EclipseCon France 2014 - Git Exercise 03 - work on branches in p...Git Tutorial EclipseCon France 2014 - Git Exercise 03 - work on branches in p...
Git Tutorial EclipseCon France 2014 - Git Exercise 03 - work on branches in p...
 

Último

Unveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsUnveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsAhmed Mohamed
 
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...Angel Borroy López
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureDinusha Kumarasiri
 
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...Cizo Technology Services
 
Machine Learning Software Engineering Patterns and Their Engineering
Machine Learning Software Engineering Patterns and Their EngineeringMachine Learning Software Engineering Patterns and Their Engineering
Machine Learning Software Engineering Patterns and Their EngineeringHironori Washizaki
 
Odoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 EnterpriseOdoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 Enterprisepreethippts
 
Introduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfIntroduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfFerryKemperman
 
PREDICTING RIVER WATER QUALITY ppt presentation
PREDICTING  RIVER  WATER QUALITY  ppt presentationPREDICTING  RIVER  WATER QUALITY  ppt presentation
PREDICTING RIVER WATER QUALITY ppt presentationvaddepallysandeep122
 
MYjobs Presentation Django-based project
MYjobs Presentation Django-based projectMYjobs Presentation Django-based project
MYjobs Presentation Django-based projectAnoyGreter
 
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...OnePlan Solutions
 
How to submit a standout Adobe Champion Application
How to submit a standout Adobe Champion ApplicationHow to submit a standout Adobe Champion Application
How to submit a standout Adobe Champion ApplicationBradBedford3
 
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...OnePlan Solutions
 
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样umasea
 
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...Natan Silnitsky
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWave PLM
 
Cyber security and its impact on E commerce
Cyber security and its impact on E commerceCyber security and its impact on E commerce
Cyber security and its impact on E commercemanigoyal112
 
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024StefanoLambiase
 

Último (20)

Odoo Development Company in India | Devintelle Consulting Service
Odoo Development Company in India | Devintelle Consulting ServiceOdoo Development Company in India | Devintelle Consulting Service
Odoo Development Company in India | Devintelle Consulting Service
 
Unveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsUnveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML Diagrams
 
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with Azure
 
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...
 
Machine Learning Software Engineering Patterns and Their Engineering
Machine Learning Software Engineering Patterns and Their EngineeringMachine Learning Software Engineering Patterns and Their Engineering
Machine Learning Software Engineering Patterns and Their Engineering
 
2.pdf Ejercicios de programación competitiva
2.pdf Ejercicios de programación competitiva2.pdf Ejercicios de programación competitiva
2.pdf Ejercicios de programación competitiva
 
Odoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 EnterpriseOdoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 Enterprise
 
Introduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfIntroduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdf
 
PREDICTING RIVER WATER QUALITY ppt presentation
PREDICTING  RIVER  WATER QUALITY  ppt presentationPREDICTING  RIVER  WATER QUALITY  ppt presentation
PREDICTING RIVER WATER QUALITY ppt presentation
 
MYjobs Presentation Django-based project
MYjobs Presentation Django-based projectMYjobs Presentation Django-based project
MYjobs Presentation Django-based project
 
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
 
How to submit a standout Adobe Champion Application
How to submit a standout Adobe Champion ApplicationHow to submit a standout Adobe Champion Application
How to submit a standout Adobe Champion Application
 
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
 
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
 
Hot Sexy call girls in Patel Nagar🔝 9953056974 🔝 escort Service
Hot Sexy call girls in Patel Nagar🔝 9953056974 🔝 escort ServiceHot Sexy call girls in Patel Nagar🔝 9953056974 🔝 escort Service
Hot Sexy call girls in Patel Nagar🔝 9953056974 🔝 escort Service
 
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need It
 
Cyber security and its impact on E commerce
Cyber security and its impact on E commerceCyber security and its impact on E commerce
Cyber security and its impact on E commerce
 
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
 

Git Tutorial EclipseCon France 2014 - Git Exercise 01 - installation and configuration

  • 1. EGit/Gerrit Hands-on training: Installation and Configuration Introduction To use Git from Eclipse you need the EGit plug-in. With EGit you do nearly all of your Git- related tasks. But for certain operations you may want to use the command-line Git. In the tutorial session at EclipseCon the necessary software is distributed via a memory stick. The paths in the description below are relative to the path of the location where you copied the stick content to. USB Stick Copy the following folders from the USB Stick to your local hard disk: ● git_tutorial ● <folder matching your operating system> The first folder contains ● Slides ● Instructions for the exercises ● Demo Gerrit installation in a zip (backup in case Wifi isn’t available) ● EGit 3.4 update site archive The second folder contains (depends on operating system) ● Eclipse Standard Package 4.3.2 with all features you need for the exercises including latest EGit 3.4.0 (shipped with Luna) ● Native Git installation
  • 2. Install Eclipse Packages (with pre-installed features) To save time we created Eclipse Standard 4.3.2 packages with all needed features pre- installed: ● EGit / JGit : all features, 3.4 Take them from your copy of the USB stick. Simply unpack the package and start Eclipse using eclipse/eclipse, if necessary you may need to adjust permGen and maximum heap size in the eclipse.ini file. In case there is a problem with the package for your platform you may try to use an existing Eclipse installation and install EGit into it as described in the next section. Manual EGit Installation (Backup) To install EGit into an existing Eclipse installation (anything from 3.8 to 4.4 should work) follow this section. For the sample project you will need an Eclipse installation having JDT and PDE. Install it from the following p2 repository archive on the USB stick: ● click “Archive…” and select local path to the archive on the memory stick: ○ <stick>/git-tutorial/egit-3.4/ org.eclipse.egit.repository-3.4.0.201406110918-r.zip and install all features ● If you are preparing an Eclipse installation before the training you may install EGit 3.4 from http://download.eclipse.org/egit/updates-3.4
  • 3. Installing native Git (optional) All exercises in this tutorial can be done with EGit so you may skip installing native git. If you want to try native Git you may use it on the same repository you are working on with EGit. In case you want to use native Git for some reason here short instructions how to install it 1. Install command line git If you install prior to EclipseCon session go to http://git-scm.com/download to find the installation matching your operating system. During EclipseCon session the installations will be provided on a memory stick. a. Linux: install git using your favorite package manager b. Mac: install git from <stick>/mac-64/git-1.8.4.2-intel-universal-snow- leopard.dmg c. Windows: Install msysgit from <stick>/windows*/Git-1.9.4- preview20140611.exe During the installation leave all the options to their defaults besides the installation directory. Registration and Configuration 1. Eclipse User Account needed to use Gerrit server at Eclipse In order to contribute to any Gerrit hosted repository you need an Eclipse user account. If you are an Eclipse committer or if you can logon to Eclipse sites like forums (http://www.eclipse.org/forums), Bugzilla (https://bugs.eclipse.org/bugs), Wiki (http://wiki.eclipse.org/) you already have an Eclipse account. ○ If you forgot your password visit the registration page (https://dev.eclipse.org/ site_login/createaccount.php) to change it ○ Otherwise go to the registration page (https://dev.eclipse.org/site_login/ createaccount.php) and register for a new account. 1. Sign the Contributor agreement Before your first contribution can be accepted, you need to electronically sign the Eclipse Foundation Contributor License Agreement (CLA). You only have to do this once, and it covers all Eclipse projects. ○ Log into the Eclipse projects forge; ○ Click on "Contributor License Agreement"; and ○ Complete the form. 2. Register to Gerrit ○ Logon to https://git.eclipse.org/r/ using the registered email address and password ○ Note down the username; you will need it for Git access
  • 4. ○ Visit https://git.eclipse.org/r/#/settings/projects and configure a watch for project “sandbox/egit-training”. Afterwards you can use the “My > Watched Changes” link to get a list for changes pending in code review for the projects you are watching. URLs for the Example Repository used in this Training
  • 5. This section contains a list of useful URLs. You do not need to check them now. The exercises also contain the necessary URLs. URLs for Eclipse Gerrit server on git.eclipse.org: Browser access ○ Gerrit WebUI : https://git.eclipse.org/r/ ○ use email address and password of your Eclipse account to logon ○ Browsing Git online using cgit: http://git.eclipse.org/c/sandbox/egit-training.git/ Git access ○ HTTPS protocol: https://git.eclipse.org/r/sandbox/egit-training.git ○ find your username here https://git.eclipse.org/r/#/settings/ ○ generate the HTTP password here https://git.eclipse.org/r/#/settings/http-password ○ find your username here https://git.eclipse.org/r/#/settings/ ○ if necessary generate a ssh key pair and upload the public ssh key to https://git.eclipse.org/r/#/settings/ssh-keys Build jobs ○ a verification build job is verifying all changes pushed for review, find the verification build job here: https://hudson.eclipse.org/egit/job/egit-training.gerrit/ ○ Feel free to configure Mylyn Builds to watch the build job If the network is down or slow or you are offline you may run a pre-configured demo Gerrit locally. In that case first go through the instructions “3-demo-gerrit/ 9_Starting-Demo-Gerrit” and then come back to this exercise. If you do the exercises using the local demo Gerrit the URLs for git communication with Gerrit are different: ○ HTTP protocol: http://localhost:8080/egit-training.git ○ Gerrit WebUI is then reachable under : http://localhost:8080/ ○ there is no GitWeb included in the demo Gerrit installation ○ there is no Hudson included with the demo Gerrit EGit Configuration ○ Windows only: HOME environment variable (if not set EGit will ask when you use EGit for the first time). Please check if it is set to your user home directory.
  • 6. ○ Hint: Git needs to know who (user & email) commits to a repository. Don’t worry: when EGit needs this information for the first time it will ask you. Communication Protocols Git supports many communication protocols, for this tutorial we choose HTTP (section 4. below). This choices provide both read and write access using the same URL to the central example repository hosted on Gerrit running on git.eclipse.org . HTTP configuration ○ open https://git.eclipse.org/r/#/settings/http-password and click Generate Password to generate your HTTP password ○ you may then communicate over HTTP using the URL https://git.eclipse.org/r/ p/sandbox/egit-training.git and the credentials given on https://git.eclipse.org/ r/#/settings/http-password Result
  • 7. It is crucial to check that your HTTP configuration is correct. To ensure that try to clone the example repository. You will need this repository to continue with the following exercises. Clone the example repository and import projects into Eclipse ● Open the “Git Repositories” view: Window > Show View > Other > Git > Git Repositories ● Click Clone a Git repository in the git repositories view. ● Enter the URL https://git.eclipse.org/r/sandbox/egit-training and click Next.
  • 8. ● Click Next. You should see some branch names in the next dialog. Make sure all shown branches are selected. ● Click Next. In the “Directory” field, choose a path where to store the local repository. The default path can be configured in Preferences > Team > Git in the field “Default Repository folder” ● Make sure the “Import all existing projects after clone finishes” checkbox is selected ● Click Finish
  • 9. Configure Gerrit When you use Gerrit as a server for the central repository you need some configuration settings of your local repository. ● Normally do not directly push to the branch on the remote repository but into the review queue. Before you push to Gerrit you have to configure that once for your local repository. ● You may need another URL. This is not the case in our training setup. ● You should push changes with a change-ID line in the commit message. You can configure the local repository such that EGit will always create a Change-ID. ● You may want to fetch the review notes from Gerrit (More details in another exercise). Gerrit configuration wizard Open the node “Remotes” of your repository in the Git Repositories View. Select Gerrit Configuration… on “origin” You can keep the default values in the Wizard page:
  • 10. Resulting Repository Configuration You can check the result in the Configuration of the local repository. Select Properties on the repository node in the Git Repositories View. Get Familiar with the Example Project ● The example repository contains two projects. ○ org.eclipse.example.calc: contains a simple calculator ○ org.eclipse.example.calc.test:contains unit tests ○ Both projects contain launch configurations. Use them to start the calculator or run the unit tests. Note that for Mac there is a specific launch configuration (with the “Mac” in the name). ● You may browse the central example repository using cgit at: http://git.eclipse.org/c/sandbox/egit-training.git/ Additional EGit configuration and useful views
  • 11. EGit Documentation The EGit user guide is bundled with the EGit feature, invoke it via Help > Help Contents > EGit Documentation. Git Workbench Toolbar and Menu In order to simplify usage of the most frequently used Git actions the Git Command Group can be activated to show a Git Workbench Toolbar and/or Menu ● right-click in the workbench toolbar area and click Customize perspective... , or, on a Mac, select Window -> Customize Perspective ● in the tab Command Groups Availability click Git, this will enable both the Git workbench toolbar and menu ● in the tabs Toolbar Visibility and Menu Visibility you may configure which actions should appear in the Git Workbench toolbar and menu Repositories View To get an overview on your git repositories open the Git Repositories View.
  • 12. Select the example project and click Show in > Git Repositories Under Remotes > origin you see the fetch and the just created push configuration. To see the details select the URL and click Open Properties View. To see the complete repository configuration, click the same menu entry on the repository node. History View To browse the history of the repository, open the History View: On the repository node in the Git Repositories View click Show in History. Best you arrange the Repositories View and the History View next to each other, as shown below. Copyright © 2014 by S. Lay, M. Sohn