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.
Difference between revisions of "Git"
(New page: 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.) |
|||
Line 1: | Line 1: | ||
+ | == Git Repositories == | ||
+ | |||
+ | === Committers new to CVS === | ||
+ | Before working on a git repository, please: | ||
+ | * 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 | ||
+ | * '''DON'T FORGET to configure your git environment''' | ||
+ | git config --global user.email somebody@somewhere.tld | ||
+ | git config --global user.name "John Doe" | ||
+ | |||
+ | === Connecting, cloning a repo === | ||
+ | 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 === | ||
+ | Before committing code to your cloned repo, you must add/commit | ||
+ | |||
+ | |||
+ | === Creating a new repository === | ||
+ | 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 | ||
+ | |||
+ | |||
+ | == Git mirrors of CVS 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. | 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. |
Revision as of 12:34, 27 January 2010
Contents
Git Repositories
Committers new to CVS
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 somebody@somewhere.tld git config --global user.name "John Doe"
Connecting, cloning a repo
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
Before committing code to your cloned repo, you must add/commit
Creating a new repository
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
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.