'cannot open git-upload-pack' error in Eclipse when cloning or pushing git repository

kiduxa

I am not able to clone or push to a git repository at Bitbucket in Eclipse:

Error 'cannot open git-upload-pack'

It's weird, because a day before I didn't have any problem. I have downloaded the sts 3 times with no luck. This error keeps showing. Also I have installed SourceTree and it says 'This is not a valid source path / URL':

Error 'This is not a valid source path / URL' in sourcetree

If I use git commands to import the project, it works, but I wan't to use EGit for this task, since I am a newbie with git.

I don't know if this has to do with it, but in the same directory I have the android-adt-bundle. This one works pretty well, but the project lies on GitHub and not Bitbucket. Also, I'm working with another person and he is able to fetch and push data from and to the Bitbucket repository. I have read lots of posts but none of them have helped me out.

I'm using Windows 7 btw.

kiduxa

Finally I made it work thanks to the steps outlined in the Eclipse forum:

Set up the SSH key stuff

  1. Download and install mysys git according to the github instructions at http://help.github.com/win-git-installation/
  2. In C:/Users/you/ssh hide any existing keys (id_rsa and id_rsa.pub) in a subdirectory. If the ssh directory does not exist, create it. Of course, "you" is your username as the OS knows you.
  3. From the start menu, run Git-Bash command shell (a regular DOS command shell will not work).
  4. In the Git-Bash shell generate an rsa key based on your email (the one you registered at github): ssh-keygen -t rsa -C "[email protected]" and enter your pass phrase and confirm when asked.
  5. The previous step should have created C:/User/you/ssh/id_rsa.pub which you can now open in a text editor and copy. At github, go to account settings, SSH Keys, add a key and paste this in the key box.
  6. In Git-Bash again (notice the back-ticks in the next line): eval `ssh-agent` ssh-add C:/User/you/ssh/id_rsa ssh [email protected]

Here is what you just did: You ran the ssh-agent which is needed by ssh-add. Then you used ssh-add to make note of the location of your key. Then you tried to ssh to GitHub. The response to this last command should be that you have successfully authenticated at GitHub but that you don't have shell access. This is just an authentication test. If the authentication was not successful, you'll have to sort that out. Try the verbose version:

ssh -v [email protected]

Assuming this worked....

In Eclipse, configure the remote push

  1. Window > Show View > Git > Git Repositories will add a repository explorer window.
  2. In the repository window, select the repository and expand and right-click Remotes and choose Create Remote.
  3. Copy the GitHub repository URI from the GitHub repository page and paste it in the URI box.
  4. Select ssh as the protocol but then go back to the URI box and add "git+" at the beginning so it looks like this:

    git+ssh://[email protected]/UserName/ProjectName.git

  5. In the Repository Path box, remove the leading slash

  6. Hit Next and cross your fingers. If your get "auth fail", restart Eclipse and try step 5 again.
  7. When you get past the authentication, in the next dialog select "master" for source ref, click "Add all branches spec" and "Finish".

Instead of using SSH [email protected] I did it with SSH [email protected].

Now I can push and import without any problem.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

"cannot open git-upload-pack" - Cloning project in Eclipse IDE

From Dev

error when cloning git repository with ssh

From Dev

error when cloning git repository with ssh

From Dev

Heroku - Fatal error when pushing to a git repository

From Dev

Heroku - Fatal error when pushing to a git repository

From Dev

git-tfs returns "(401) unauthorized" error when cloning a repository

From Dev

git-tfs returns "(401) unauthorized" error when cloning a repository

From Dev

Cloning git repository failed using eclipse

From Dev

Packfile is truncated error while cloning Git repository

From Dev

SSH errors when cloning Git repository

From Dev

Issue with cloning git repository

From Dev

Cloning a git repository

From Dev

Gitlab prompts for git password when cloning a git repository

From Dev

error pushing to my git hub repository from git

From Dev

Cloning git repository inside another git repository

From Dev

git: "pack has bad object" when pushing to remote

From Dev

Bitbucket cloning private git repository

From Dev

Git cloning a repository that is already a clone

From Dev

what determines default branch when cloning from git bare repository

From Dev

duplicate file error while pushing --mirror into Git repository

From Dev

Password prompt when pushing git repository on localhost (gitlab)

From Dev

Git Error pushing

From Dev

Git error 403 pushing

From Dev

error: git-upload-pack died of signal 13

From Dev

Cloning / Reading only history /log of a git repository

From Dev

Push to bare git repository without cloning it beforehand

From Dev

How to continue cloning a Git repository that the download was stopped?

From Dev

Does cloning a git repository create a connection to that source?

From Dev

Specific modules not Importing after cloning Git repository

Related Related

  1. 1

    "cannot open git-upload-pack" - Cloning project in Eclipse IDE

  2. 2

    error when cloning git repository with ssh

  3. 3

    error when cloning git repository with ssh

  4. 4

    Heroku - Fatal error when pushing to a git repository

  5. 5

    Heroku - Fatal error when pushing to a git repository

  6. 6

    git-tfs returns "(401) unauthorized" error when cloning a repository

  7. 7

    git-tfs returns "(401) unauthorized" error when cloning a repository

  8. 8

    Cloning git repository failed using eclipse

  9. 9

    Packfile is truncated error while cloning Git repository

  10. 10

    SSH errors when cloning Git repository

  11. 11

    Issue with cloning git repository

  12. 12

    Cloning a git repository

  13. 13

    Gitlab prompts for git password when cloning a git repository

  14. 14

    error pushing to my git hub repository from git

  15. 15

    Cloning git repository inside another git repository

  16. 16

    git: "pack has bad object" when pushing to remote

  17. 17

    Bitbucket cloning private git repository

  18. 18

    Git cloning a repository that is already a clone

  19. 19

    what determines default branch when cloning from git bare repository

  20. 20

    duplicate file error while pushing --mirror into Git repository

  21. 21

    Password prompt when pushing git repository on localhost (gitlab)

  22. 22

    Git Error pushing

  23. 23

    Git error 403 pushing

  24. 24

    error: git-upload-pack died of signal 13

  25. 25

    Cloning / Reading only history /log of a git repository

  26. 26

    Push to bare git repository without cloning it beforehand

  27. 27

    How to continue cloning a Git repository that the download was stopped?

  28. 28

    Does cloning a git repository create a connection to that source?

  29. 29

    Specific modules not Importing after cloning Git repository

HotTag

Archive