I get the error below when I try to push:
"An internal Exception occurred during push: URI not supported:
sso:..."
SourceTree and IntelliJ allow to set git's executable path but not Eclipse which is always /usr/bin/git.
Note:
My git path is /usr/local/git/current/bin/git.
I can't symlink it to /usr/bin/git due to SIP, and I'm not allowed to disable it.
I can't change the URL, it must stay sso://.
I set /usr/local/git/current/bin/git first thing in $PATH, but Eclipse ignores it.
Versions:
/usr/local/git/current/bin/git - 2.7.0
/usr/bin/git - git version 2.5.4 (Apple Git-61)
Eclipse - 4.5.2
Eclipse EGit- 4.2.0.201601211800-r
The only solution I thought about is to set the path through:
Eclipse > Team > Git > Configuration, but I don't know what is the key, if there is any.
Eclipse uses EGit exclusively for git operations, which in turn uses JGit which is a port of native git to Java running inside Eclipse itself.
In other words, Eclipse does not rely on any native git on the system.
I would suggest raising an issue with the JGit project for the sso protocol, and use git push manually from the command line for the time being. You should be able to use Eclipse for all other git operations (not involving talking to origin).
See Using native git not jgit in Eclipse git? for more detail.
Related
Are there any Eclipse plugin allowing a full remote development (including using git installed on the remote machine) as the "Remote Development" extension does for VS Code ?
Git is implicitly designed to work with remote git repositories, but it still does require a local git repository and git toolset. You can use the "eGit" plugin set already installed in Eclipse to "clone" from remote git repositories to your desktop. You don't need additional plugins for this.
I want to change default Eclipse Git executable location with SourceTree installed embedded Git executable.
But in eclipse where is the configuration to change git path ?
Reason I am doing this is ,Source Tree has latest Git but separate installed version is not latest (As I don't have installation right and Through Source Tree I can update Embedded version easily).
Eclipse uses EGit which relies on JGit (a java implementation of Git).
That is why you don't see a git.exe path to set. (As opposed to SourceTree, which can use an embedded or a "system" Git)
You can only specify a Git path in order for EGit to respect your Git system config.
Eclipse has its own GIT. It relay on the EGIT project .
Source tree other other hand can use internal git or System git.
You can take the git version installed by git and try to replace it (replace the EGIT git.exe)
I recommend reading this answer by #VonC as well
Using native git not jgit in Eclipse git?
I have been working with Git from the command-line for a few weeks. I am now on a project that uses Eclipse as the IDE and EGit for the Git plugin. I am worried that by installing EGit I'm going to destroy any Git configs in my existing projects (that I've been maintaining/coding directly from a terminal).
If EGit could interfere, how so (and how can I avoid this)? If not, why?
No, it doesnt interfere. EGit only works within Eclipse and is independent from a command line Git installation. Regarding the configuration EGit of course reads your existing gitconfig. But if you use a recent Git version on the command line, there shouldn't be any differences in the config.
In fact you can keep using Git on the command line for committing, pushing etc. It doesn't matter if the project is configured for EGit in Eclipse.
How to fix this problem?
Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
As I suggested in "Egit installation path error", it can be linked to the absence of a Git installation (which EGit relies on for the system config path).
Install:
Git as a portable msysgit if you are on Windows: PortableGit-1.8.4-preview20130916.7z (unzip it anywhere you want, and add the C:\path\to\PortableGit-1.8.4-preview20130916\bin to the PATH environment variable)
Or Git using the latest Git Releases from a custom PPA (Personal Package Archive) if you are on Linux
In my case installation of the latest Git version helped.
Downloaded latest version from https://git-scm.com/download/win and installed it to the same directory as Git was before. Started eclipse and error message from Error log disappeared. I have Cygwin64 installed.
I'm new to Jenkins and experimenting at the moment. I use Eclipse and run Git from within Eclipse, using the Git plugin, which is described as follows: 'Eclipse Git is an Eclipse Team provider based on JGit, a pure Java implementation of the Git version control system'.
I've installed the Git plugin for Jenkins but when I go to configure it, Jenkins complains that it can't find the Git executable. That makes sense, and the obvious solution is to install it (in my case, using a Ubuntu repository - sudo apt-get install git-core). My concern is that having two installations of Git on the machine will give rise to problems - or am I being over-cautious?
It's fine to have both - since EGit is pure Java, it has nothing to do with the installed (native code) version of Git.
Problems might arise if there was a breaking change in a future version of Git, but it should be easy enough to fix by updating both installations.