Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "EGit/User Guide"

(moving getting started to separate page)
Line 1: Line 1:
 
{{EGit}}
 
{{EGit}}
 +
 +
[[EGit/User Guide/Getting Started|Getting Started]]
  
 
This is work in progress, feel free to help improving this user guide :)
 
This is work in progress, feel free to help improving this user guide :)
 
= Getting Started =
 
 
Create a new Java project "HelloWorld"
 
 
[[Image:01-CreateNewJavaProject.png]]
 
 
Select  "File" -> "Team" -> "Share Project"
 
 
[[Image:02-TeamShareProject.png]]
 
 
Select repository type "Git" and click "Next"
 
 
[[Image:03-SelectRepositoryTypeGit.png]]
 
 
to configure the Git repository select the new Eclipse project HelloWorld
 
 
[[Image:04-SelectProjectToConfigureGitRepository.png]]
 
 
and click "Create" to initialize a new Git repository for the HelloWorld project
 
 
[[Image:05-CreateNewGitRepository.png]]
 
 
click "Finish" to close the wizard.
 
 
The decorator text "[master]" behind the project shows that this project is tracked in a repository on the master branch
 
and the question mark decorators show that the ".classpath" and ".project" files are not yet under version control
 
 
[[Image:06-NewGitRepository.png]]
 
 
select "Team" -> "Add to version control" on the project node
 
 
[[Image:07-AddToVersionControl.png]]
 
 
the plus decorators show that now the ".classpath" and ".project" files are added to version control
 
 
[[Image:08-AddedToVersionControl.png]]
 
 
the file under ".settings" is not added to version control since it is by default on the list of ignored resources which can be changed in "Preferences" -> "Team" -> "Ignored Resources"
 
 
[[Image:09-IgnoredResources.png]]
 
 
select "Team" -> "Commit" from the context menu on the project
 
 
[[Image:10-ClickCommit.png]]
 
 
Enter a commit message explaining your change, the first line (separated by an empty line) will become the short log for this commit. By default the author and committer are taken from the .gitconfig file in your home directory. You may check the checkbox "Add Signed-of-by" to add a Signed-off-by tag. If you are committing the change of another author you may alter the author field to give the name and email address of the author. Click "Commit" to commit your first change.
 
 
[[Image:11-CommitDialog.png]]
 
 
note that the decorators of the committed files changed.
 
 
[[Image:12-CommittedFiles.png]]
 
 
select "Team" -> "Show in Resource History" from the context menu to inspect the history of a resource
 
 
[[Image:13-SelectResourceHistory.png]]
 
 
[[Image:14-ResourceHistory.png]]
 
 
create a new Java class HelloWorld and implement it, then add it to version control and commit your change
 
 
improve your implementation and commit the improved class, the resource history should now show 2 commits for this class.
 
 
[[Image:15-FirstImplementation.png]]
 
 
double click "src/HelloWorld.java" in the Resource History View to open your last committed change in the Eclipse compare view
 
 
[[Image:16-ShowChange.png]]
 

Revision as of 03:30, 25 September 2009

EGit
Website
Download
Community
Mailing ListForumsIRCmattermost
Issues
OpenHelp WantedBug Day
Contribute
Browse SourceProject Set File

Getting Started

This is work in progress, feel free to help improving this user guide :)

Back to the top