On Wed, Apr 29, 2009 at 6:34 AM, xor <xor at gmx.li> wrote: > On Tue, 2009-04-28 at 08:32 +0800, Daniel Cheng wrote: >> On Tue, Apr 28, 2009 at 6:11 AM, xor <xor at gmx.li> wrote: >> > >> > Hi, >> > >> > I've been trying to set up my IDE to work with git and found the >> > following one: >> > >> > http://www.jgit.org/ >> > >> > It pulls, it diffs, everything, but push won't work: >> > "Can't connect to any URI: git://github.com/freenet/fred-staging.git >> > (Transport error occured during push operation: Protocol error: expected >> > LF)" >> > >> > Notice that I did not specify the git:// URI when fetching the >> > repository, I used the git@ one and enabled git+ssh. >> >> try to fix this in command line: >> >> $ cd fred >> $ git remote show >> >> this should show your current git remote detail, that is the git:// uri. >> If it is wrong, you can fix it with: >> >> $ git remote rm original >> $ git remote add original ?git at github.com:freenet/fred-staging.git >> >> then go to eclipse and try again > > As I've said, I *did* specify the correct URI when creating the > repository. "get remote show origin -n" says the URI is: > git+ssh://git at github.com/freenet/fred-staging.git
The correct URL is git at github.com:freenet/fred-staging.git not git at github.com/freenet/fred-staging.git (see the : ?) I repeat this because this is the first problem I had. > which is the one I specified when creating the repository and which > seems correct to me because it uses the "git@" part. -- I may disagree with what you have to say, but I shall defend, to the death, your right to say it. - Voltaire Those who would give up Liberty, to purchase temporary Safety, deserve neither Liberty nor Safety. - Ben Franklin
