I am playing with my eclipse cvs functionality (on my windows box), is there a way to check out a project hosted on github?
Anyone shows me a pointer? Thanks,
Not with the CVS client. You need to install git for Windows or a git plugin for Eclipse.
CVS and git are two different source code version control systems. Other popular choices are Subversion or Mercurial. You have to use different clients or Eclipse plugins for each of them.
Use EGit, which provides Git support as part of Eclipse and is available in both the latest Helios builds as well as the upcoming Indigo release.
Related
I am not an experienced Java developer and I am currently modifying and re-building a plugin project. I am about to adopt a versioning control system (e.g. Subclipse), however I already have several versions of such project. My intention is that to check how these versions differs from each other and I was wondering what is the best approach into this. I work with Eclipse IDE.
Thank indeed,
I.
Subclipse just connects Eclipse with a Subversion repository. You have to have a Subversion repository somewhere for Subclipse to work.
Assuming you have a Subversion repository, you commit the oldest version first. You create a Eclipse workspace on you computer that you'll use to communicate with Subversion. First, you copy the oldest version of your project into the Eclipse workspace. Then you commit the workspace. You update your workspace by copying each saved version to your Eclipse workspace in turn, and commit.
That way, the source control will be able to show you the differences between each saved version.
Ctrl click on the root of the two projects, Right click, then Compare With -> Each Other
Pro tip: use a better source control system than svn, like Bazaar, Git, or Mercurial
how to get svn repository work in eclipse. i installed svn but cant find the location to repository other than link to it. http://wso2.org/library/67
You'll need to install a eclipse plugin for svn.
This ibm developer works link summarizes the steps and further shows to checkout a code from a svn repo.
You should install an SVN plugin for Eclipse. I'd recommend that you use Subversive, here: http://www.eclipse.org/subversive/
I would like to use two svn repositories. One is to synchronize with my production environment and the other is to synchronize with another developer. Is it possible using Subversive in Eclipse?
EDIT: Sorry! I meant SVN, not CVS
I think what you means is "For one given project, I would like to be able to synchronise on one side with the official repo and at the same time, use the synchronisation and merging facilities to stay i sync with another CVS repository".
Best of my knowledge, this is not possible from the same project. Neither with CVS nor with subversion nor with any other SCM. This is a little bit because all SCM plugins are actually plugged into the Team Management plugins of eclipse and has actually a lot to do with the fact that the relation between a dev environment and a repository is quite exclusive.
What you have to do if you want to synchronize on an exceptional basis is :
Disconnect from one repo (say CVS) (team disconnect). Do not delete the .cvs folders.
Reconnect to a second repo (say SVN - either subversive or subclipse <= my preferred one)
Synch with SVN
disconnect from SVN
reconnect with CVS (team => share).
This is too risky to be done on a regular basis.
Therefore there are other strategies
Use a "shadow project" in your workspace synchronised through a regular synchronisation tool. The master project being connected to the CVS repo and the shadow to VN.
Use git + SVN. git as your local repo backed by SVN. The other developer can use a similar approach.
All in all there are no simple "out of the box" solution. All these solutions require a significant amount of commitment to work flawlessly. But SCM has always been like this, I guess.
Subversive adds Subversion
integration for Eclipse (subversion
is a version control system similar
to CVS). It does not handle CVS
repositories!!!
To use CVS repositories with eclipse
you should use the appropriate CVS
Plugin for eclipse.
You may even use both eclipse plugins (subversive and the cvs plugin). They will work with Eclipse like a charm (but keep in mind that subversive only handles subversion repositories).
Yes its possible to use Subversive in Eclipse. I am using Subversion and CVS both through Eclipse and Tortoise. Subversion is much faster and seems to handle binary files better. The one thing to get your head around is that revision numbering is totally different between subversion and cvs. May be this can help you.
Hope this helps.
I am new to github and souce control. i have installed the Egit plugin for eclipse
and i have created the repository on website.
Now i want to ask that do i still need to install GIT installer for windows or not
because then whats the need for Egit.
Also i don't know how can i link the Egit with online Git account
No you should need Git installed. By installing the Egit plugin you would have a new option to create a Git project from the File>New Project if I remember correctly.
Edit: Here's a nice tutorial of how to use the plugin.
Does m2eclipse use EGit for git support or does it just use the native git client installed on a machine?
I have both installed (plus the m2eclipse SCM integration plugin) and I was wondering if I still need EGit if I use m2eclipse's git support.
If you have installed Maven SCM feature, you should be able to checkout projects from Git using Maven SCM provider for Git. This should work for "Checkout projects from SCM" wizard, assuming you know a correct project url to checkout.
m2eclipse has no idea of git, so it needs a plugin which supports git (currently only EGit).
Inside the POM, the situation is different: Here, the Maven plugin (and not the one from Eclipse) is loaded. This SCM maven plugin uses the command line interface of the git client on the machine.