I use eclipse with git (egit).
I would like to make use of my ssh-agent so I can push from eclipse. Does anybody know how to set up egit to use ssh-agent?
background: I can't upload my key to eclipse as my keys are on a cryptostick. My ssh-agent can loaded with the help of opensc.
In your eclipse startup script or .profile (or wherever) add export GIT_SSH=/usr/bin/ssh before starting eclipse. Then eclipse uses default ssh which uses ssh agent and you cann run pull and push commands within eclipse even if your key is on a smartcard.
Edit: GIT_SSH is interpreted by eclipse's egit, but also by the stand-alone git. Setting it to /usr/bin/ssh sets it to the default value for stand-alone git, so only egit will change it's behavior.
Update June 2016 (4 years later): Gunnar Wagenknecht now mentions in the comments:
It's now possible in Eclipse Neon with project eclipseguru/eclipse-jsch-agent-proxy, an Eclipse ssh-agent and Pageant support.
A workaround for older Eclipse versions is to use the native OS SSH client instead of the Eclipse built-in one by setting GIT_SSH environment variable:
export GIT_SSH=/usr/bin/ssh
(See EGit SSH configuration and EGit FAQ, SSH Config)
No way! Sooo many years of eclipse out there and still no way to work with a smartcards and ssh/ssh-agent? Really disappointing come back to eclipse..
https://bugs.eclipse.org/bugs/show_bug.cgi?id=179924
Checkout cac-agent. It includes cac-ssl-relay, which can work as a universal tunnel from any client application that needs CAC access (including git/eclipse).
Related
We have desktop application which uses eclipse rich client platform(eclipse RCP) and when I run the application it always shows these Egit and home environment warnings even we are not using Git in our project.
I know one solution which requires to install git and configure it in eclipse- RCP get an option in windows-preference-Team- Git- confirmation and warnings from where we can deactivate these warnings.
But why we install Git if we are not using it and why to increase size of desktop application through installing git.
So, my question is how to deactivate these Egit warnings without having Git install?.
EGit is based on JGit and does not required the command line Git installed at all. I guess you talking about this warning that is shown when Git's system-wide settings cannot be found (to warn about possible problems when using both EGit and the Git command line, as they should use the same and not separate system-wide settings).
If so, add the following two lines in your plugin_customization.ini to disable the warning:
org.eclipse.egit.ui/show_home_drive_warning=false
org.eclipse.egit.ui/show_git_prefix_warning=false
Currently I'm developing on Windows with Java using Eclipse and EGit installed and everything works fine. However, I'd like to try the IntelliJ IDEA where the IDE required the git.exe to work with Git. Thus, I installed git v1.9.2 from http://git-scm.com/. Everything works fine in IDEA, but in Eclipse some file are marked as "changed" (having the ">" symbol prepended) although there is absolutely nothing that changed. My bet is that there is that EGit and git interfere with each other. But unfortunately I have no clue how to fix this.
Apparently, the two should not interfere with each other.
See the answer here:
Will installing Egit interfere with existing Git installation?
I have an SVN repository location via svn+ssh protocol in eclipse Indigo with Subclipse 1.8 on a Kubuntu 12.10.
Now, in order to access this outside our network, I need to go via another port. It worked with the previously used Subversive Plugin by editing the repository location and enter the new port number. But I don't see such a thing in Subclipse.
I tried the relocate option and entered the port in the url after the host in the common host:port format, which seemed to be fine at first, since it triggered again the authentication popup and within that had the port set correctly. But after confirming, the relocation didn't finish and eclipse had to be killed.
Can someone tell me what to do? And if there is really no option for that in Subclipse, maybe through some OS mechanism?
PS: I had to change the eclipse plugin since svn was updated to 1.7 and Subversive does not provide a connector for it within the Indigo release.
The port is part of the Subversion server URL. If you need to change the URL of the server in Subclipse, then the way to do it is with the Relocate option. This has to run through all of the working copies that are linked to that server and run the svn relocate API so that the working copies are pointing at the new server URL.
You do not mention what OS you are using, or whether you are using SVNKit or JavaHL. This matters because it will also determine how SSH is managed. Eclipse may have been hung up because a command line SSH tool was being spawned and there was no Terminal to provide answers to the prompts it wanted to provide. If you are using OpenSSH, then as long as you are running something like ssh-agent to manage your keys, you can avoid this. If you use SVNKit, then it provides a Java-based SSH client that will provide GUI prompts within Eclipse.
I am able to check out projects from SVN repository using eclipse as in the below screen shot.
But i am not able to do the same from command line..I am getting the error as : 'SVN' is not recognized as an internal or external command
If SVN is not installed on my machine how come eclipse is able to checkout?
Do i need to install SVN client in my machine?
I tried searching on my machine but could not find which path(SVN installation) eclipse is referring to execute SVN commands
Subclipse is coming with its own SvnClientAdapter which implements the Subversion API.
Subversion itself provides a default UI, in the form of a command line interface. If you want to easy operate with it on the Windows console, then you should add the Subversion home to the PATH environment variable.
Apart from that I prefer in most cases to use TortoiseSVN on Windows.
You should install the command line client yes. For help on that see svnbook
I am using Windows7 and I do lot of Java coding in Eclipse. But I dont have a version control system. I have heard of Subversion being a very popular VCS, so I would like to set it in my local box. Can you please give me some pointers on where to start/look at?
I would like to checkin/checkout files using Eclipse. Please guide me.
Thanks
If you're on windows it's difficult not to go with VisualSVN. As for Eclipse you can get an eclipse plugin here
Subclipse http://subclipse.tigris.org/ is a plugin for eclipse that allows you to checkout / in files inside of the eclipse IDE.
It doesn't get SVN set up on your machine, you'll need to install svn and set up a repository first, but the integration with eclipse is nice to have.
If you're the only person who needs to access the repository, you can create a svn repository on your filesystem and you won't need to install and run a server.
http://vincenthomedev.wordpress.com/2007/10/15/setup-svn-local-repository-step-by-step/
Subclipse is a great SVN plugin for Eclipse, you might also find TortoiseSVN very handy as well. Both are very easy to use.
First, you'll need a Subversion repository, which can either be a remote server on the internet (google "free subversion repository"), or a server running locally on your machine, or a machine on your lan. For the last one, you can use VisualSVN Server.
Once with a SVN repository setup, you have to install a SVN client to work with it. I recommend TortoiseSVN for general stuff, but I'm pretty sure Eclipse has SVN support builtin, so once you've setup a repository server, you just have to configure the client on Eclipse to connect to it.