I have installed source tree and when I start my terminal I got this error.
Can anyone got any suggestions?
Here's the info from the log file:
2015-07-13T15:02:40: SingleInstance called with arguments:
System.Collections.Generic.List`1[System.String]
2015-07-13T15:03:07: Could not determine repository from:
'ssh://git#bitbucket.org/rox911/test.git', output was:
FATAL ERROR: Disconnected:
No supported authentication methods available (server sent: publickey) fatal:
Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
2015-07-13T15:03:23: Fatal error: System.InvalidOperationException:
DialogResult can be set only after Window is created and shown as dialog.
I also came across the issue after updating from v1.6.14 to v1.6.16.
Trying to use embedded Git:
SourceTree >> Tools >> Options >> Git >> Use Embedded Git
UPDATE
Issue was fixed in version 1.6.17.0. confirmed.
I used the sourcetree 1.6.16 before. I try several method to solve this problem and failed.
The solution for me was to use an older version of the sourcetree.
So used sourcetree 1.6.14
Related
I am trying to push any commits from IntelliJ but keep getting this error message:
"Push failed Cannot spawn C:\Users\laure\AppData\Local\JetBrains\IdeaIC2020.1\tmp\intellij-git-askpass.sh: No such file or directory could not read Username for 'https://github.com': No such file or directory"
I can do it from terminal but not from the IDE.
Seems like antivirus is blocking execution of the script, which is needed to authenticate into the remote via IDE.
Please try disabling antivirus or add C:\Users\laure\AppData\Local\JetBrains\IdeaIC2020.1\tmp\intellij-git-askpass.sh
It might be a result of AV, or group policy blocking java scripts.
Also please check whether the file intellij-git-askpass.sh exists.
I checked AV. Bitdefender tends to be paranoid, but i checked the notifications on it and I can se that it is not blocking the push.
I am new to IntelliJ, might I ask what you mean by adding:
C:\Users\laure\AppData\Local\JetBrains\IdeaIC2020.1\tmp\intellij-git-askpass.sh.
Also I could not find the file:
intellij-git-askpass.sh
PS
Thank you for taking your time to answer.
I can use git fine from command line, I can use fine git from NetBeans IDE, and I can use git fine from IntelliJ IDEA.
But I cannot use git in any instance of Eclipse (either pure Eclipse for Java IDE, or IBM Rational Application Developer which based on Eclipse). SSH keys configured same as for other IDEs and are valid.
I suspect problem at some OS level, maybe Eclipse stores some global settings somewhere and all instance reuse them. Tried to delete %USERPROFILE%/.eclipse -- did not help.
The error in .log is like that (again, keys are valid and properly configured in SSH2 Preferences dialog in Eclipse):
!ENTRY org.eclipse.egit.ui 4 0 2019-03-29 13:01:45.024
!MESSAGE git#git.assembla.com:xxx.git: git#git.assembla.com: Permission denied (publickey,keyboard-interactive).
!STACK 0
org.eclipse.jgit.api.errors.TransportException: git#git.assembla.com:xxx.git: git#git.assembla.com: Permission denied (publickey,keyboard-interactive).
[UPDATED on 04/02/19]
as you can see github.com was not even added to known hosts, i.e. it was not attempted to connect.
typical error.
command line git works
adding user id git to ssh protocol connection type does not help.
Ok, playing with Visual Studio Code I stumbled on the same problem and was able to fix it, so I tried to apply solution to Eclipe and it started working for me.
Not sure why the original problem started, but now I found at least a workaround and can use Git from the Eclipse.
To remind what I had in Eclipse:
org.eclipse.core.runtime.CoreException: Invalid remote: origin
at org.eclipse.egit.ui.internal.fetch.FetchOperationUI.execute(FetchOperationUI.java:106)
at org.eclipse.egit.ui.internal.fetch.FetchOperationUI$1.runInWorkspace(FetchOperationUI.java:123)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: org.eclipse.jgit.api.errors.InvalidRemoteException: Invalid remote: origin
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:136)
at org.eclipse.egit.core.op.FetchOperation.run(FetchOperation.java:134)
at org.eclipse.egit.ui.internal.fetch.FetchOperationUI.execute(FetchOperationUI.java:103)
... 3 more
Caused by: org.eclipse.jgit.errors.NoRemoteRepositoryException: git XXXXXXXXXXXXXXXXXXX: Permission denied (publickey).
at org.eclipse.jgit.transport.TransportGitSsh.cleanNotFound(TransportGitSsh.java:208)
at org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.(TransportGitSsh.java:288)
at org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:161)
at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:136)
at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:122)
at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1138)
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:130)
The solution was to start SSH agent first (to avoid asking passphrase) and then in the same shell session start Eclipse. Without any changes in Eclipse error gone and IDE started reaching repository.
So, the steps would be:
Open shell session (cmd.exe)
Start SSH agent (start-ssh-agent.cmd)
[In the same shell session] Start Eclipse (eclipse.exe)
I'm trying to set up git with VS2013 by following these instructions:
How do I add an existing Solution to GitHub from Visual Studio 2013
However in Home | Unsynced Commits, I get the following error:
An error occurred. Detailed message: An error was raised by libgit2. Category = Unknown (Error).
No error message has been provided by the native library
Considering that the error message is very unclear, I don't know where to start troubleshooting.
EDIT: The error occurs not only with Unsynced Commits, but with Changes and Branches as well.
Please refer to this answer : https://stackoverflow.com/a/20004092/3286583
I was also getting the libgit2 error. It was an issue because of "Initialize this repository with a README.md".
For removing the solution from source control, close Visual Studio and delete the .gitattributes, .gitignore and ".git" folder. Now reopen the solution and try again with above mentioned answer's method.
I'm using W7 64 bi , and just got an error from the github client app. It says:
failed to sync branch. you might need to open a shell and debug the state of this repo.
What do I do now ?
I know this will sound crazy, but try restarting your computer.
This happend to me yesterday; I was getting this error, and upon checking: \AppData\Local\GitHub\TheLog.txt
I found messages like:
AppData\Local\GitHub\PortableGit_ca477551eeb4aea0e4ae9fcd3358bd96720bb5c8\bin\sh.exe:
*** Couldn't reserve space for cygwin's heap, Win32 error 0
The problem comes around to GitHub for Windows updating itself (in particular the cygwin-ized PortableGit) in the background while I was using it. Ultimately, some cygwin dlls from the previous PortableGit dlls were still loaded in memory causing errors when trying to execute the new (updated) PortableGit commands.
Restarting cleared out all the previously loaded cygwin dlls.
You might have a more complex problem than my answer can solve, but -- for anyone else who comes across this question -- some basic solutions can be found in this video. In short, status.github.com, git status, and gitstatus are your friends. See what they tell you and then continue your sleuthing with that new information in mind. You can use these tools using Git Shell that comes with the Github Windows client.
I'll note that my own problem stemmed from trying to sync a file that was too large: I only found this by using the Git Shell, which gave me the error when I tried git sync. I'm currently looking for ways to remove the file in question in previous commits so I can sync my repo appropriately. The guide I am currently following can be found here, and if it seems to be taking me in the right direction (it was actually recommended in the Git Shell error message!)
I had this error before, and I fixed it by reinserting the credentials for my github account. Turns out that github logged me out for some reason
I am getting a "Multiple problems have occurred" error window in eclipse and the following is the more detail I get:
An error has occurred. See error log for more details.
An error has occurred. See error log for more details.
Repository config file V:\git\broadband_production.git\config invalid Cannot read file V:\git\broadband_production.git\config
I can access the same git data using a git bash, but I would like to be able to continue using the EGit funcionality in eclipse.
Any ideas on what is wrong?
Does your config file have a UTF-8 byte order mark? If it does, you'll have to upgrade to the nightly version of EGit, which includes the recent fix for handling UTF-8 BOM.
Use the following update site to upgrade: http://download.eclipse.org/egit/updates-nightly