How to setup Eclipse EGit to connect to the MS Team Foundation Server without authentification error? - eclipse

I am running a Ubuntu x64 in a VM. In the company network is a TFS which holds git repositories. When using git via command line I can easily clone the repros? When switching to Eclipse and using EGit it fails with:
"http://tfs:8080/tfs/myPrj: authentication not supported:
http://tfs:8080/tfs/myPrj: authentication not supported"
When I install the MS TFS Eclipse plugin I get the same error. Any idea how to solve this?

Check Alex Rukhlin's reply in this post:
The fact that EGit Import Wizard cannot clone the Git repository from
TFS, either tells me that the issue is in that JGit functionality that
both (TEE and EGit) wizards use.
We're digging into the problem trying to figure out if it's fixed in
some of recent EGit/JGit versions.

Related

Team Foundation Server - Eclipse and Cross Platform: Unable to clone Git repository using TEE in Eclipse. Error cloning - Not Authorized

I have TFS 2018.2 and Eclipse IDE for Enterprise Java Developers Version 2019-06 (4.12.0). In eclipse I have installed Team Explorer Everywhere plugin and I am able to see all my Git repository however when I try to clone a git repository using the administrator account in TFS I get below error:
Error cloning the <GitName> repository.
http://../..//<GitName>: not authorized.
Clone Error:
Eclipse Version:
Reference Document
In case if the question is placed in the wrong forum path feel free to correct it.
I have tried the resolution provided in https://github.com/microsoft/team-explorer-everywhere#frequently-asked-questions-faq
Also, tried installing latest versions of Egit in Eclipse - https://download.eclipse.org/egit/updates/
I am not sure how to use the older version of Egit to try the import of repository. I seem to have latest version of Egit.
UPDATE:
Apparently I am able to resolve the issue by following below steps:
And creating a Git repository from File menu and then utilizing the 'Copy clone URL' from the first image. Select the newly created repository and perform right click on it to select 'Paste repository path or url' which would ask for authentication and repo would be copied.
However the action items have carried TFS to run into issues:
and
According to your description, I'm afraid you are in the wrong direction to fix this issue.
Your error actually is "not authorized" which is not Authentication not supported. There are totally different issues. Instead of digging into that QA, you should try to figure out why it's not authorized for MyGit repository.
First give a try to use Eclipse with version 4.2 to 4.6 instead of latest according to official link of team-explorer-everywhere.
Supported on Linux, Mac OS X, and Windows. Compatible with IDEs that
are based on Eclipse 4.2 to 4.6.
Besides follow below steps to narrow down the issue:
You should also use git command line by using the administrator
account in TFS and check if you are able to use it to connect/clone
MyGit repository which hosted by TFS server.
Check if your Eclipse can connect to and clone library from any
GitHub repo correctly.
Update or delete cached credentials from Control Panel ->
Credential Manager -> Generic Credentials the password for
git:http://ServerName:xx/

Environment setup in GIT repository

Need small help related to the environment setup in a Git repository. Actually I created a Bitbucket account and I am trying to connect Eclipse and Git. But unfortunately I am not able to find Git in Windows. Could you please help me out on this?
I am using the Neon version of the Eclipse SDK.

Eclipse, Git and Bitbucket - Can't push - Error 401 Unauthorized

I have a problem with Bitbucket and EGit. I created a new repository on BitBucket and also a new project in Eclipse. When I try to push a commit, I get the following error message:
Can't connect to any repository: https://bitbucket.org/MyName/MyProject.git
(https://bitbucket.org/MyName/MyProject.git: 401 Unauthorized)
I also tried https://MyName#bitbucket.org/MyName/MyProject.git but I got the same error. After creating the commit, I pushed by using the command line with git push and it worked without a problem. After that I tried pushing with Eclipse and EGit but I got the same error again. I checked my account name and password multiple times.
Do I need to configure EGit in some way to make it possible to push from Eclipse to BitBucket? A month ago I always pushed to a repository on a different host from Eclipse with EGit without a problem.
It depends on your version of Eclipse and Egit.
With the very latest Neon, there is a thread reporting the same issue, and a ticket opened: bug 501000.
There is a fix in progress: Change 82187: "EGit Authenticator prevents login dialog".
It is already merged into master (also on the GitHub mirror:commit 39b391c and commit 10c65c7.
Change 82539 also just got merged 3 days ago.
So Marketplace Client Project project repository 1.5.2 should include the fix.
Actually, it is called 1.5.1a, but you can use http://download.eclipse.org/mpc/releases/1.5.2. as an url.
If you are using Eclipse Neon you may also install EPP Marketplace Client from the Neon repository. Click Help > Install New Software, type "neon", select the Neon repository URL, select Collaboration > Eclipse EPP Marketplace Client and click Install.
There is also a fix in progress for EGit itself: change 82295.

Eclipse and Git integration fails on Windows XP

I'm starting using Git as VCS. I've installed it locally on my machine, Windows XP sp3 Professional. Everything is ok with installation and configuration.
Problems occurs when I try to integrate Git with Eclipse (Kepler). I´ve installed Egit plugin. Then when I try to clone from a local bare repository, I follow these steps:
Open an Eclipse workspace
Right click on project explorer
Choose import
Choose projects from Git
Next-> choose clone URI
Next-> browse to repository location
Next-> browse to destination location
Next-> "Problem ocuured"
When I almost finish I got an error message:
Git repository clone failed.
Symbolic links not supported on this operating system
I try the solution from this page http://schinagl.priv.at/nt/hardlinkshellext/hardlinkshellext.html
but didn't work for me.
Is there a way to make symbolic links work on Windows XP or a different way to make Egit works on windows XP?
Hope you can help me, thanks

egit plugin for Eclipse

I have created a gitlab repository and followed the installation instruction by the letter and it was successful (i think... i can browse the repository online) and now I want to connect the egit plugin from eclipse to this remote repository.
I was using SVN for quite some time and now we need to switch to git and I am confused. egit only gives me the option to create a local repository but I'm a bit lost on how to push/fetch code to my online repository.
Any advice will be greatly appreciated :)
Thanks!
With Gitlab (working with ssh urls), that means you have to register your public and private ssh key in Egit first before being able to clone it.
See EGit ssh configuration
Then you can clone it.
And yes, you need to clone the full repo locally to work on it, that is the difference between a:
CVCS (Centralized Version Control System) like SVN
DVCS: Distributed Version Control System.
See "Sell me Distributed revision control" and "Describe your workflow of using version control (VCS or DVCS)" for more.
First you need to clone the remote repository using git clone <repository>, then you can import it to eclipse using egit
Or
You can use the clone functionality provided by EGit to clone the remote repo to local system