Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Git"

Line 8: Line 8:
 
The CVS repositories at Eclipse.org are being mirrored to read-only Git repositories.  Please see the [http://dev.eclipse.org/git/ git repositories page] for the full list of repositories.
 
The CVS repositories at Eclipse.org are being mirrored to read-only Git repositories.  Please see the [http://dev.eclipse.org/git/ git repositories page] for the full list of repositories.
  
== Git repositories (experimental) ==  
+
== Git repositories ==  
 
Eclipse projects may use either CVS, SVN or Git.  The project you are looking for may not be using Git. Please see [[CVS_Howto]] and [[SVN_Howto]] for more information.  If you are unsure which type of repository a project is using, please go to that project's home page.
 
Eclipse projects may use either CVS, SVN or Git.  The project you are looking for may not be using Git. Please see [[CVS_Howto]] and [[SVN_Howto]] for more information.  If you are unsure which type of repository a project is using, please go to that project's home page.
  
 
=== My Eclipse project wants to use Git ===
 
=== My Eclipse project wants to use Git ===
 
* New projects may choose Git as their repository in the [http://www.eclipse.org/projects/project_provisioning_request.php New Project Provisioning Request].
 
* New projects may choose Git as their repository in the [http://www.eclipse.org/projects/project_provisioning_request.php New Project Provisioning Request].
* Existing projects may migrate to Git from SVN or CVS.  Please see [Git/Migrating to Git] for more details.
+
* Existing projects may migrate to Git from SVN or CVS.  Please see [[Git/Migrating to Git]] for more details.
 +
 
 +
=== Migrating from CVS/SVN to Git ===
 +
Please see [[Git/Migrating to Git]].
  
 
=== Committers new to Git ===
 
=== Committers new to Git ===
Line 50: Line 53:
  
 
For consistency, the name of the repository '''must''' end with .git.
 
For consistency, the name of the repository '''must''' end with .git.
 +
 +
=== Permanently deleting code from Git ===
 +
If you are required to permanently remove code from a Git repository, please open a bug against [https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Community&component=Git Community/Git] and Webmaster will do this for you.

Revision as of 15:03, 29 March 2010

This page is a work in progress, and is not yet complete. Not every project has a Git repository -- just like not every project has an SVN or CVS repository.


Git mirrors of CVS repositories

The CVS repositories at Eclipse.org are being mirrored to read-only Git repositories. Please see the git repositories page for the full list of repositories.

Git repositories

Eclipse projects may use either CVS, SVN or Git. The project you are looking for may not be using Git. Please see CVS_Howto and SVN_Howto for more information. If you are unsure which type of repository a project is using, please go to that project's home page.

My Eclipse project wants to use Git

Migrating from CVS/SVN to Git

Please see Git/Migrating to Git.

Committers new to Git

Before working on a Git repository, please:

  • Read Git for Dummies
  • Have the Git Guide handy
  • Note that anyone can commit to their repo, but only Eclipse committers can push their repo to git.eclipse.org
  • DON'T FORGET to configure your git environment
   git config --global user.email my_committer_email@address.com
   git config --global user.name "John Doe"

List of Git repositories available

Please connect to http://git.eclipse.org/

Connecting, cloning a repo

Please see the list of Git repositories (above).

Committer access:

   git clone ssh://committer_id@git.eclipse.org/gitroot/project/repo

Anonymous, read-only access:

   git clone git://git.eclipse.org/gitroot/project/repo

Examples:

   git clone ssh://droy@git.eclipse.org/gitroot/babel/org.eclipse.babel.server.git
   git clone git://git.eclipse.org/gitroot/babel/org.eclipse.babel.server.git

Committing and pushing

Before committing code to your cloned repo, please ensure that your Git environment is properly set. Otherwise, the email address stored in the commit transaction in your repository will not match the email address of your Eclipse Committer record with the Eclipse Foundation, and your push will fail.

Creating a new repository

Webmaster can create a new repository for you. Just open a bug against Eclipse Foundation > Community > Git. However, Eclipse committers with shell accounts can create new repositories:

   initrepo /gitroot/project/org.eclipse.repo.name.git

For consistency, the name of the repository must end with .git.

Permanently deleting code from Git

If you are required to permanently remove code from a Git repository, please open a bug against Community/Git and Webmaster will do this for you.

Back to the top