Kanishka Panamaldeniya
Kanishka Panamaldeniya

Reputation: 17576

Importing bitbucket project via GIT to Eclipse failed with errors

Hi i have installed EGit to my eclipse .

now i am trying to import an existing bitbucket project .

tried steps .

  1. in Eclipse - Window -> prefrerences -> Team -> Git -> Configuration -> Add entry

enter image description here

2.windows -> preferences -> General-> network Coneections -> SSH2 -> Key management - >Generate RSA key . then saved private key . also added the private key in

windows -> preferences -> General-> network Coneections -> SSH2 -> General -> Add private Key

3.in bitbucket

logged in from kanishka@****.com . user name = kanishkapanamaldeniya .

Manage account -> ssh keys -> Add key.

  1. i have not created any repositories my self , but i have access to a repository .

  2. in eclipse File -> import - > GIT -> projects form git -> Clone Uri .

enter image description here

i am getting the following error

enter image description here

I can not understand why is this happening , please help me , i am stuck here of a long time now , thanks in advance :)

Upvotes: 3

Views: 3469

Answers (4)

Charles P.
Charles P.

Reputation: 2097

Exact same issue here, just needed to set a new "App Password" in Bitbucket: https://bitbucket.org/account/settings/app-passwords/

That solved it.

Upvotes: 0

cmg_george
cmg_george

Reputation: 309

And, the same error many years later I fixed it by changing git HTTP client: In eclipse: Window->Preferences->Version Control->Git->HTTP client (I've set it to Java built-in HTTP)

Upvotes: 0

schin chan
schin chan

Reputation: 59

what worked for me was changing the network connection setting from manual to direct. Window->Preferences->General->Network connections->Active Provider->direct

Upvotes: 1

VonC
VonC

Reputation: 1324937

An ssh url would never include a user account to access the bitbucket server. It generally use a service account like 'git' (as seen in "Troubleshoot SSH Issues")

[email protected]:accountname/reponame.git
# or
ssh://[email protected]/accountname/reponame.git

In your case, if you have under your account a test.git repo:

ssh://[email protected]/kanishkapanamaldenya/test.git

That means:

  • The username for the "authentication" part would be git
  • The 'password' would be the passphrase associated with your private key (if you created it passphrase-protected) or empty (if your private key isn't passphrase protected)

This presuppose that you have an account kanishkapanamaldenya on BitBucket, and that you have a Git repo name test.git in BitBucket.
Eclipse itself won't create those two for you. It will simply push to it or pull from it.

A path like "test/test.git" wouldn't be a valid BitBucket path anyway.
It is accountname/reponame.git.
If your account name on BitBucket is kanishkapanamaldenya, then the right path would be kanishkapanamaldenya/test.git.

Upvotes: 1

Related Questions