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/Sharing"

m (New page: = Adding a project to version control = Select the project node of the project to be added to version control Image:01-CreateNewJavaProject.png Select "File" -> "Team" -> "Share Pr...)
 
(Create a new empty Git Repository)
 
(4 intermediate revisions by one other user not shown)
Line 5: Line 5:
 
[[Image:01-CreateNewJavaProject.png]]
 
[[Image:01-CreateNewJavaProject.png]]
  
Select  "File" -> "Team" -> "Share Project"
+
Execute "Team" -> "Share Project" on the project node
  
 
[[Image:02-TeamShareProject.png]]
 
[[Image:02-TeamShareProject.png]]
Line 40: Line 40:
 
bin
 
bin
  
This excludes the bin folder from version control. Add .gitignore to version control.
+
This excludes the bin folder from GIT's list of untracked files. Add .gitignore to version control.
 +
 
 +
=Create a new empty Git Repository=
 +
 
 +
This is currently not possible with EGit. You have to create a project first and to share it afterwards. The Share Project Wizard supports creation of Git repositories (see [[EGit/User Guide/Sharing#Adding a project to version control|Adding a project to version control]]).
 +
 
 +
[[Category:Draft Documentation]]

Latest revision as of 14:39, 2 November 2009

Adding a project to version control

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

01-CreateNewJavaProject.png

Execute "Team" -> "Share Project" on the project node

02-TeamShareProject.png

Select repository type "Git" and click "Next"

03-SelectRepositoryTypeGit.png

To configure the Git repository select the new Eclipse project HelloWorld

04-SelectProjectToConfigureGitRepository.png

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.

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

06-NewGitRepository.png

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

07-AddToVersionControl.png

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

08-AddedToVersionControl.png

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

bin

This excludes the bin folder from GIT's list of untracked files. Add .gitignore to version control.

Create a new empty Git Repository

This is currently not possible with EGit. You have to create a project first and to share it afterwards. The Share Project Wizard supports creation of Git repositories (see Adding a project to version control).

Back to the top