Eclipse / EGit can only connect after previous console connection - eclipse

I am using Windows 7 / Eclipse Juno / Git Extension 2.43
I have set up a VM Server with UbuntuS Server & Gitolite and added a repo.
Afterwards i cloned the repo with Git Extensions. Everything fine so far. I was also able to conect with Egit via Eclipse. Both using the ssh key.
But now i have the problem that after a restart Eclipse does not connect to the repo.
When i try with Git Extension everything works as it should. The curious thing is that after the successful connection with Git Extensions Eclipse is also able to connect.
After the next restart same problem.
Also to mention is that Eclipse never asks for the passphrase of the ssh key but Git Extensions does.
Maybe Git Extensions somehow caches the passphrase for the key?
I could always start Git Extension after every reboot but thats not really what i want to do.
Any idea?
Thx in advance!

Related

Unable to clone git repository in Eclipse EGit

I am unable to clone a repository in Eclipse. But yes I am able to clone the same through git bash.
I am getting an error with possible reasons as:
Incorrect URL
No network connection
SSH is not configured properly.
My URL is correct and I am having proper network connection, though. As far as SSH is concerned, I am having the same set of keys in my local Windows folder, Eclipse > SSH2 and my Gerrit SSH public keys.
I am really confused, that where I am missing out on this.
The issue was due to SSH keys. I generated the new pair of keys from eclipse and mapped it to Gerrit. It is working for me now.
Thanks Rudiger for your help.

How to clone mercurial repository created by eclipse plugin in other laptop?

My colleague created mercurial repository by eclispe plugin(http://javaforge.com/project/HGE)(right click project root->team->share with->mercurial....) in hist laptop with ip address:192.168.0.111,the question is how I can clone his repository use same plugin in eclipse.
For cloning, you need access via either ssh or http (or some other mechanism provided by a plugin). If your colleague is running a Linux or OS X system, he could run an SSH server on his box and create an account for you, so that you'd be able to clone his repository over ssh. The easier solution, which also works on Windows, is for your colleague to run hg serve in his Mercurial repository (I don't know if the Eclipse plugin has an option for that), which will run the embedded webserver. By default, you should then be able to clone from http://192.168.0.111:8000/ (the hg serve command has options to run it on another port).

Setup a development environment git + centos + Eclipse egit on windows

I am setting up a development environment in my home. I have installed a centos linux in a virtual machine. All files in /var/www/html are shared with samba.
I have access to these files in windows. I have installed git in centos. I created a git repository in a sub directory of /var/www/html.
I am using Eclipse in windows. Egit is installed in Eclipse. I tried to add repository in eclipse but when I do a commit in egit, "git status" in linux displays a list of modified files to commit. Also when I do a commit in linux, all files in egit will be marked az modified.
I don't know how to synchronize egit with git. What is the correct way to do this?
The easiest solution by far would be to use a cloud service such as GitHub (or BitBucket if you want free private repositories).
An example workflow is (on terminal, however your clients will have GUI options for this):
$ git remote add origin git#bitbucket.org:username/repository
$ git push origin master
The on your other client fetch the changes and merge them in through pull
$ git pull
Both sides will need to have the same remote repository - This way you can push - pull wherever you do the work and the code be the same. I use this setup for developing and deploying my web-apps.
This solution relies on you having an internet connection - if you dont want or dont have an internet connection at your disposal then have a look at this post:
gitosis vs gitolite?

Using Git With Eclipse Remote Systems Explorer

I am doing web development using CFEclipse with Classic Eclipse (Indigo) on a Windows Server.
I am using Remote Systems Explorer to access a Linux box via sftp.
The Linux box has Git installed. There is one branch in the development folder.
I have installed EGit in Eclipse, but there are no provisions for working with a remote system.
Because I cannot develop locally, how should I checkout files, edit and review changes in a browser, and ultimately commit properly? There is no local repository and checking out files through ssh (putty) while editing them in Eclipse does not show my changes when browsed.
If you can access to the remote location through ssh why you don't just simply clone the repository in local and then pull and push the changes ?
I think that cloning the the repository is the best bet in your situation, you have only to install msysgit on your windows machine ...
You can use remote project to achieve what you need. Unfortunately, git operations need to be done on the remote server. But, you can change the files and the files will be changed remotely on fly. To create the remote project you have to right click on the remote folder you want to create the remote project. The context menu you will find "Create Remote Project".
What Eclipse will do is make the modification thru RSE. This means, eclipse will deal with save files remotely.

EGit + Beanstalk - Auth Fail

I have Eclipse 3.5 and EGit 0.9.3 installed. Gitbash can authenticate fine to Beanstalk, but for some reason Eclipse gives me Auth Failed when I try to import/clone a repo into Eclipse.
Also, I don't seem to have git+ssh as a protocol option - why is that? I have copied my files from .ssh to ssh as some other posts have indicated but it still does not work.
I have tried adding git+ssh:// to the URI. I also tried SSH protocol. When I select git protocol, I get an error saying "User not supported on git protocol."
How can I use EGit to work with Beanstalk repositories?