Jump to: navigation, search

EGit/User Guide/Sharing

< EGit‎ | User Guide
Revision as of 05:06, 15 October 2009 by Jens.baumgart.sap.com (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Adding a project to version control

Select the project node of the project to be added to version control


Select "File" -> "Team" -> "Share Project"


Select repository type "Git" and click "Next"


To configure the Git repository select the new Eclipse project HelloWorld


Click "Create" to initialize a new Git repository for the HelloWorld project. If your project already resides in the working tree of an exisiting GIT repository the repository is chosen automatically.


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


Select "Team" -> "Add to version control" on the project node


The plus decorators show that now the ".classpath" and ".project" files are added to version control


Create a file .gitignore in the project folder with the following content:


This excludes the bin folder from version control. Add .gitignore to version control.