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.
Difference between revisions of "Git"
Line 8: | Line 8: | ||
== Git mirrors of CVS repositories == | == Git mirrors of CVS repositories == | ||
− | The CVS repositories at Eclipse.org are being mirrored to read-only | + | 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 (experimental) == | ||
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 === | ||
+ | If you're a project committer and you'd like to experiment with Git, please see [https://bugs.eclipse.org/bugs/show_bug.cgi?id=257706#c173 Bug 257706 comment 173]. | ||
=== Committers new to Git === | === Committers new to Git === | ||
− | Before working on a | + | Before working on a Git repository, please: |
* Read [http://wiki.freegeek.org/index.php/Git_for_dummies Git for Dummies] | * Read [http://wiki.freegeek.org/index.php/Git_for_dummies Git for Dummies] | ||
* Note that anyone can commit to '''their''' repo, but only Eclipse committers can push their repo to git.eclipse.org | * Note that anyone can commit to '''their''' repo, but only Eclipse committers can push their repo to git.eclipse.org | ||
Line 21: | Line 24: | ||
git config --global user.name "John Doe" | git config --global user.name "John Doe" | ||
− | === List of | + | === List of Git repositories available === |
− | (There are none yet) | + | (There are none yet, but CVS projects are mirrored to Git. See above.) |
=== Connecting, cloning a repo === | === Connecting, cloning a repo === | ||
− | Please see the list of | + | Please see the list of Git repositories (above). |
git clone ssh://committer_id@git.eclipse.org/gitroot/project/repo | git clone ssh://committer_id@git.eclipse.org/gitroot/project/repo | ||
Line 34: | Line 37: | ||
=== Committing and pushing === | === Committing and pushing === | ||
− | Before committing code to your cloned repo, please ensure that your | + | 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 === | === Creating a new repository === |
Revision as of 10:17, 28 January 2010
This page is a work in progress, and is not yet complete. Git repositories at Eclipse.org are experimental and are not fully deployed. Not every project has a Git repository -- just like not every project has an SVN repository.
If you're a project committer and you'd like to experiment with Git, please see Bug 257706 comment 173.
Contents
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 (experimental)
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
If you're a project committer and you'd like to experiment with Git, please see Bug 257706 comment 173.
Committers new to Git
Before working on a Git repository, please:
- Read Git for Dummies
- 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
(There are none yet, but CVS projects are mirrored to Git. See above.)
Connecting, cloning a repo
Please see the list of Git repositories (above).
git clone ssh://committer_id@git.eclipse.org/gitroot/project/repo
Example:
git clone ssh://droy@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:
cd /gitroot/your_project mkdir org.eclipse.your.repo.name.git cd org.eclipse.your.repo.name.git git init --bare --shared