Fix some issues
-
Close opened projects and open the HelloWorld-6 project
- Fix the Javadoc and
Commit
. -
Fix label and
Commit
.
System.out.println("Hello EclipseCon !");
Commit
.Commit
.System.out.println("Hello EclipseCon !");
Commit
.public static void main(String[] args) { if (args.length == 0) { System.out.println("Hello EclipseCon !"); } }
Commit
.public static void main(String[] args) { if (args.length == 0) { System.out.println("Hello EclipseCon !"); } else { String greeting = String.format("Hello %s !", args[0]); System.out.println(greeting); } }
public static void main(String[] args) { GreetingService greetingService = new GreetingService(); System.out.println(greetingService.greeting()); }Add the Main to the staging area (mark the conflict resolved).
public String greeting() { return "Hello EclipseCon !"; }Stage the GreetingService.
Commit
.
Note
You can Reset...
to cancel the merge
Note
EGit 3.0 improved displaying conflicts a bit nicer and also features 3 way comparison in more places.
EGit 3.0 is coming with Kepler
public static void main(String[] args) { GreetingService greetingService = new GreetingService(); if (args.length == 0) { System.out.println(greetingService.greeting()); } }
Team > Rebase > Continue Rebase
on
the contextual menu of the project into the Package Explorer view.
public static void main(String[] args) { GreetingService greetingService = new GreetingService(); if (args.length == 0) { System.out.println(greetingService.greeting()); } else { String greeting = String.format("Hello %s !", args[0]); System.out.println(greeting); } }
Continue Rebase
.Note
Don't be afraid by rebase, most of time conflicts are rare and easy to resolve.
In the worst case you can Abort Rebase
to retrieve the initial state.