From: Andreas Ericsson <ae@op5.se>
To: Clifford Heath <clifford.heath@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: "remote end hung up unexpectedly"
Date: Mon, 10 Dec 2007 14:11:21 +0100 [thread overview]
Message-ID: <475D3AF9.60402@op5.se> (raw)
In-Reply-To: <CE1FB037-26E3-475E-9F9D-AC3874987B9C@gmail.com>
Clifford Heath wrote:
> Be patient with me, it's my first day on git... I like it better than
> svn already,
Welcome to a better world.
> but I need a bit of help.
>
> After cloning a remote repository, I wanted to update (rebase) an existing
> remote branch to get the latest master commits, so I switched to it using
> git checkout, then did a "git merge origin/master" and it updated my local
> copy so it looked reasonable... I have changes to add to this branch, but
> I wanted a proper base, so I did a "git commit" and a "git push". The push
> gave me the above message.
>
> I've checked ssh access (don't have shell) to the other side, my PK is
> set up.
>
> What went wrong? How can I diagnose it further (-v doesn't help)
>
How did you clone it? If you cloned via git:// protocol, you most likely
can't push back there. The git-daemon supports pushing, but does no
authentication.
If you cloned via ssh it's a bit harder to diagnose, since all git knows
is that the ssh-server closed its connection. For security reasons, it
doesn't necessarily tell you why it did that, so it's hard to know what
the real problem is.
> I understand that to add my further changes, I should set up a local branch
> to track this updated remote branch. But I'm assuming that the rebase must
> be done while switched to the remote branch...?
>
Not really. You can do "git rebase --onto origin/master master". However,
since you merged origin/master earlier, a rebase will only tell you that
you're up-to-date.
"git help rebase" might be worth looking into though.
--
Andreas Ericsson andreas.ericsson@op5.se
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231
next prev parent reply other threads:[~2007-12-10 13:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-10 11:49 "remote end hung up unexpectedly" Clifford Heath
2007-12-10 13:11 ` Andreas Ericsson [this message]
[not found] ` <5F13DCA7-5072-4D76-89A7-7F05A5928FA2@gmail.com>
2007-12-11 6:54 ` Andreas Ericsson
2007-12-11 7:15 ` Clifford Heath
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=475D3AF9.60402@op5.se \
--to=ae@op5.se \
--cc=clifford.heath@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).