Difference between revisions of "Platform-releng/Git Workflows"
(→Clone your repo) |
(→Clone your repo) |
||
Line 38: | Line 38: | ||
# Confirm the location that it will clone the repository into. | # Confirm the location that it will clone the repository into. | ||
# an initial branch of '''master''' and a remote name of '''origin''' are standard. | # an initial branch of '''master''' and a remote name of '''origin''' are standard. | ||
+ | # ''Finish'' - Now just sit back while git copies the entire repo to your harddrive :-) | ||
+ | |||
+ | We need to get the projects from the repo into our workspace: | ||
+ | |||
+ | # right click on your newly cloned repo and select '''Import Projects''' | ||
+ | # you want '''Import existing projects''' from the ''Working Directory'' | ||
+ | # ''Next'' | ||
+ | # Select the projects that you want to import from the repository | ||
# ''Finish'' | # ''Finish'' | ||
− | Now | + | Now you can start working. |
= Start working in HEAD = | = Start working in HEAD = |
Revision as of 07:53, 5 July 2011
We'd like to capture some common CVS workflows used by the Eclipse Project and spell out the git/EGit equivalent.
Contents
Clone your repo
The first step is to clone the one or more repos you need to work on. You want to clone the repo to a location outside your workspace. Then use the EGit Import Projects option to import the projects.
Refer to the EGit/User Guide for instructions and pictures.
- Switch to the Git Repository Exploring Perspective
- Use Clone a Git repository
- you can paste in your connection URL and it should do the right thing. Some URLs:
- ssh://userid@git.eclipse.org/gitroot/equinox/rt.equinox.bundles.git
- ssh://userid@git.eclipse.org/gitroot/equinox/rt.equinox.framework.git
- ssh://userid@git.eclipse.org/gitroot/equinox/rt.equinox.incubator.git
- ssh://userid@git.eclipse.org/gitroot/equinox/rt.equinox.p2.git
- ssh://userid@git.eclipse.org/gitroot/equinox/rt.equinox.security.git
- ssh://userid@git.eclipse.org/gitroot/jdt/eclipse.jdt.core.git
- ssh://userid@git.eclipse.org/gitroot/jdt/eclipse.jdt.debug.git
- ssh://userid@git.eclipse.org/gitroot/jdt/eclipse.jdt.git
- ssh://userid@git.eclipse.org/gitroot/jdt/eclipse.jdt.ui.git
- ssh://userid@git.eclipse.org/gitroot/pde/eclipse.pde.build.git
- ssh://userid@git.eclipse.org/gitroot/pde/eclipse.pde.git
- ssh://userid@git.eclipse.org/gitroot/pde/eclipse.pde.incubator.git
- ssh://userid@git.eclipse.org/gitroot/pde/eclipse.pde.ui.git
- ssh://userid@git.eclipse.org/gitroot/platform/eclipse.platform.debug.git
- ssh://userid@git.eclipse.org/gitroot/platform/eclipse.platform.git
- ssh://userid@git.eclipse.org/gitroot/platform/eclipse.platform.releng.git
- ssh://userid@git.eclipse.org/gitroot/platform/eclipse.platform.resources.git
- ssh://userid@git.eclipse.org/gitroot/platform/eclipse.platform.runtime.git
- ssh://userid@git.eclipse.org/gitroot/platform/eclipse.platform.swt.git
- ssh://userid@git.eclipse.org/gitroot/platform/eclipse.platform.team.git
- ssh://userid@git.eclipse.org/gitroot/platform/eclipse.platform.text.git
- ssh://userid@git.eclipse.org/gitroot/platform/eclipse.platform.ua.git
- ssh://userid@git.eclipse.org/gitroot/platform/eclipse.platform.ui.git
- Next
- Select all branches to clone
- Next
- Confirm the location that it will clone the repository into.
- an initial branch of master and a remote name of origin are standard.
- Finish - Now just sit back while git copies the entire repo to your harddrive :-)
We need to get the projects from the repo into our workspace:
- right click on your newly cloned repo and select Import Projects
- you want Import existing projects from the Working Directory
- Next
- Select the projects that you want to import from the repository
- Finish
Now you can start working.