Home » Eclipse Projects » EGit / JGit » transitioning from svn to git
| | | | | | |
Re: transitioning from svn to git [message #884749 is a reply to message #884002] |
Mon, 11 June 2012 18:33 |
R Shapiro Messages: 386 Registered: June 2011 |
Senior Member |
|
|
Quote:when I right-click that cloned repo in my persp, I don't see anything resembling a "Check out" like I do for a svn repo in that persp ... What am I not understanding?
What you're not understanding is probably some very important differences between SVN and Git. In particular you don't need to do a checkout in the SVN sense -- a working directory is already there, attached to your clone. If you don't see the corresponding project(s) in your workspace you just need to import them. You can do this from the entry in the Git Repository perspective (don't use the Import item from the File menu, this doesn't always work).
There is a checkout operation in Git (and egit), but it's more like svn switch than svn checkout. You use Git checkout to change your working directory to a different branch, tag or reference.
To see more egit operations in your main development view (java, c++, python, whatever), customize the corresponding perspective and enable the Git command group. This will add the most commonly used operations to the toolbar and also enable a Git item in the menubar. There are other egit operations scattered around various places (right-click menus, new views etc).
You might want to consider upgrading to the egit nightly builds of 2.0, as it it has quite a few advantages over 1.3.
|
|
|
Re: transitioning from svn to git [message #884768 is a reply to message #884749] |
Mon, 11 June 2012 19:34 |
Randy Heiland Messages: 7 Registered: February 2010 |
Junior Member |
|
|
Yes, I'm familiar with the basic differences between SVN and Git. My confusion lies in the proper way to work with a cloned git repo inside Eclipse/Egit. The way that I currently do it, as I've tried to explain in previous posts is:
1) from the Git Repo perspective, select the icon to "clone a git repo and addd the clone to this view". This does indeed do the clone and I can see it/access its files from within the Git Repo perspective. When I right-click on the cloned repo, I see some git cmds, but don't see any "Team" item or any item that sounds like it would let me compare/diff files (see attached screenshot)
2) my original question included - if I then edit one of these files and save it, why don't I see a ">" marker on the file, telling me that it's been modified?
As I think I've also mentioned, my git repos are in a separate dir (~/git) than my other (svn, etc) Eclipse projects (~/Documents/workspace).
Regarding your suggestion to "customize corresp persp and enable the Git...", I right-click on a Persp in the top tab of the gui and click on "Customize", but I seem to get an error "Git cannot be made visible because all its children are in unavailable command groups" (see attached screenshot)
Regarding your suggestion to update to Egit nightly (2.0), from here:
(arg, when I try to include the full http link, I get:
You cannot use links until you have posted more than 25 messages.
-- SERIOUSLY?!)
www.eclipse.org/egit/download/
I click on the download.eclipse.org/egit/updates-nightly
and get a 404. Maybe it's a temporary problem.
thanks, Randy
|
|
| |
Re: transitioning from svn to git [message #884865 is a reply to message #884783] |
Tue, 12 June 2012 01:17 |
Randy Heiland Messages: 7 Registered: February 2010 |
Junior Member |
|
|
THANK you for clearly explaining the proper way to get my git repo into an Eclipse workspace (right-click on git repo in Git persp and "Import Projects"). That helped tremendously. I've got a lot to learn, but at least I'm started down the right path. One difference that I noticed was that when I would right-click on a file in a project that was checked out from svn, and do 'Compare with -> Latest from repo', it would simply tell me "There are no diffs" if that was the case. With a file from a git repo, it doesn't tell me that; rather, it brings them up side-by-side, even if there are no diffs.
About your suggestion for updating to egit 2.0 - are there release notes about it?
When I tried to install download.eclipse.org/egit/updates-nightly
I got the following:
Your original request has been modified.
"Eclipse EGit" is already installed, so an update will be performed instead.
"Eclipse EGit - Source" is already installed, so an update will be performed instead.
"EGit Mylyn" is already installed, so an update will be performed instead.
"EGit Project Set Support" is already installed, so an update will be performed instead.
"Eclipse JGit" is already installed, so an update will be performed instead.
"Eclipse JGit - Source" is already installed, so an update will be performed instead.
Cannot complete the install because one or more required items could not be found.
Software being installed: EGit Import Support 2.0.0.201206111613 (org.eclipse.egit.import.feature.group 2.0.0.201206111613)
Missing requirement: EGit Import Support 2.0.0.201206111613 (org.eclipse.egit.import.feature.group 2.0.0.201206111613) requires 'org.eclipse.team.core 3.6.100' but it could not be found
--> so I installed the eclipse.org/eclipse/platform-core/updates
and then tried to re-install the egit nightly and got:
Your original request has been modified.
"EGit Project Set Support" is already installed, so an update will be performed instead.
"Eclipse EGit - Source" is already installed, so an update will be performed instead.
"Eclipse EGit" is already installed, so an update will be performed instead.
"EGit Mylyn" is already installed, so an update will be performed instead.
"Eclipse JGit - Source" is already installed, so an update will be performed instead.
"Eclipse JGit" is already installed, so an update will be performed instead.
Cannot complete the install because of a conflicting dependency.
Software being installed: EGit Project Set Support 2.0.0.201206111613 (org.eclipse.egit.psf.feature.group 2.0.0.201206111613)
Software currently installed: Eclipse EGit Mylyn GitHub Feature 1.3.0.201202151440-r (org.eclipse.mylyn.github.feature.feature.group 1.3.0.201202151440-r)
Only one of the following can be installed at once:
Git Team Provider Core 1.1.0.201109151100-r (org.eclipse.egit.core 1.1.0.201109151100-r)
Git Team Provider Core 2.0.0.201206111613 (org.eclipse.egit.core 2.0.0.201206111613)
Git Team Provider Core 1.3.0.201202151440-r (org.eclipse.egit.core 1.3.0.201202151440-r)
Git Team Provider Core 1.0.0.201106090707-r (org.eclipse.egit.core 1.0.0.201106090707-r)
Cannot satisfy dependency:
From: EGit Project Set Support 2.0.0.201206111613 (org.eclipse.egit.psf.feature.group 2.0.0.201206111613)
To: org.eclipse.egit.core [2.0.0,2.1.0)
Cannot satisfy dependency:
From: Mylyn GitHub Connector Core 1.3.0.201202151440-r (org.eclipse.mylyn.github.core 1.3.0.201202151440-r)
To: package org.eclipse.egit.core [1.3.0,1.4.0)
Cannot satisfy dependency:
From: Eclipse EGit Mylyn GitHub Feature 1.3.0.201202151440-r (org.eclipse.mylyn.github.feature.feature.group 1.3.0.201202151440-r)
To: org.eclipse.mylyn.github.core [1.3.0.201202151440-r]
and also got the error:
Unknown Host: cbes.javaforge.com/update/site.xml
cbes.javaforge.com
Suggestions? Do I need to manually remove earlier versions of egit and, if so, how?
thanks, Randy
|
|
| | | | |
Goto Forum:
Current Time: Fri Apr 19 02:44:35 GMT 2024
Powered by FUDForum. Page generated in 0.02305 seconds
|