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

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/

Related

can not add SVN repository WSIG in Eclipse

I am trying to add repository WSIG to Eclipse but i get this error unable to load default SVN client.
link WSIG repository in github
Yes as explained above you'll need a Eclipse Plugin to clone the git repository.
Or Install latest eclipse from here and use the already installed plugin.
But as it is mentioned it a GIT repo not SVN thus SVN plugin will not work.
First of all the repository you're trying to clone (in git terms) or checkout (in SVN) is a GIT repository. That means, it uses Git as its version control system.
Thus, you cannot use SVN plugin for that, for basic understanding you can go through here.
Also on github there are ample of ways to get hands-on on Git , which I'll recommend before you actually start working using Git.
Here is the link : https://try.github.io/
Now, for your question you have to do as below for importing in eclipse :
First see , whether you have EGit plugin already installed in your eclipse if not please get this installed, as :
Once thats setup, then Goto --> Import -> Git --> Projects from Git
Then Clone URI
Then add your project link which you see on git hub as :
now paste the URL here. Since we selected http while copying from Github then choose same here as below :
Now feed your user credential and you are all set.
If you still face any difficulty within above steps, there is good documentation with images here as well : https://www.vogella.com/tutorials/EclipseGit/article.html#github
Hope this helps.

PhpStorm Settings Repository Commit on repo without HEAD not supported

I'm trying to setup a Settings Repository on GitHub.
After creating a new GitHub account and a new repository if I enter the repository upstream URL in the Settings Repository dialog of PhpStorm I receive this error message:
Failed to Sync Settings: Commit on repo without HEAD currently not supported
How I can solve this?
This seems to be a bug in the Settings repository plugin of different JetBrains IDEs. A functioning workaround is to delete the local Git repository in the IDE's config directory:
${HOME}/.<IDE>/config/settingsRepository/repository
Please refer to this site for the exact directory name of your IDE on your operating system:
https://intellij-support.jetbrains.com/hc/en-us/articles/206544519-Directories-used-by-the-IDE-to-store-settings-caches-plugins-and-logs
The workaround was posted in the JetBrains bug report (for IntelliJ IDEA):
https://youtrack.jetbrains.com/issue/IDEA-152002#comment=27-2918113
Go into "%appdata%\JetBrains\PhpStorm2020.2\settingsRepository" (change the path to match your version of PHPStorm and then rename the folder named "repository" to something else, then you can setup the project correctly. :)

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.

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

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.