K4ll-of-D00ty
K4ll-of-D00ty

Reputation: 163

Eclipse git error when pushing to remote: Transport Error: Cannot get remote repository refs

I started a Static Web Project in Eclipse to share the project in a remote Git repository as a backup and to possibly share with others.

Created a git repository in the project's folder C:\workspace\projectname.

Committed (added/staged) everything in the C:\workspace\projectname including the .project file and everything in the C:\workspace\projectname\.settings directory as initial commit (because I thought I want to be able to clone the project again from the repository in the future).

Created a remote repository at rocketgit due to its simpler features and ToS.

After everything had been commited, I right clicked the project's repository in the Git Repository view in Eclipse, clicked Remote -> Push.

I entered https as protocol, rocketgit.com as host, users/username/repositoryname as repository path. Entered my username and password, clicked Next.

But a Problem Occurred dialog shows up, with detail `Transport Error:

Cannot get remote repository refs. https://rocketgit.com/users/username/repositoryname: https://rocketgit.com/users/username/repositoryname/info/refs?service=git-upload-pack not found`.

How do I resolve this? What does this error mean? Can someone explain a solution. Thanks

Upvotes: 2

Views: 2696

Answers (1)

VonC
VonC

Reputation: 1328602

users\username\repositoryname as repository path.

"users\username\repositoryname" looks like a path on your disk, not to a remote repo URL.

A proper URL would be https://yourServer/<user>/<reponame>, or ssh://git@yourServer/<user>/<reponame>.

I don't know which one RockertGit does support, but using GitHub, GitLab or BitBucket would work.

Upvotes: 1

Related Questions