From: "Scott R. Godin" <scottg.wp-hackers@mhg2.com>
To: git@vger.kernel.org
Subject: Re: git http-backend error message
Date: Mon, 05 Apr 2010 10:52:47 -0400 [thread overview]
Message-ID: <hpctg0$416$1@dough.gmane.org> (raw)
In-Reply-To: <7v3a01v796.fsf@alter.siamese.dyndns.org>
On 03/15/2010 01:12 PM, Junio C Hamano wrote:
> Jeremiah Foster<jeremiah.foster@pelagicore.com> writes:
>> Or is it smarter to just create a bare repository, clone some
>> content into it, and then push?
>
> It depends on what you are trying to achieve by pushing into this
> repository that is not bare, iow what this pushed-into repository is used
> for.
>
> Pushing into a repository is done for two reasons:
>
> - You push into repository A so that the development done in other
> repositories B, C, D,... can all be collected, kept safe, and
> transferred out to other repositories (iow, B, C, D uses A as a shared
> meeting place).
>
> This is the primary use case of "push", and because in repository A
> there will not be any development of its own, people make A a (shared)
> bare repository.
>
> - You do perform your own development in repository A, and you would want
> to interact with other repositories B, C, D,..., by doing "git pull B"
> etc., but for network configuration reasons, you can only make
> connection to A from B, C, D..., and not in the other direction. In
> this case, because "git pull B" run on A is "git fetch B" followed by
> "git merge", you substitute the first "git fetch B" part by running
> "git push A" on B instead, because you can make connections from B to A
> but not A to B.
>
> In this case, you do not want your "git push A" run on B to overwrite
> the branch that is checked out in A, and the above error is issued if
> you attempted to do so. This would show a proper arrangement for such
> a "push instead of fetch":
>
> http://git.wiki.kernel.org/index.php/GitFaq#push-is-reverse-of-fetch
Thanks, this actually helped clear up a few things for me as well. I
haven't yet started working with remotes; mostly I've been using it to
take care of things on my end (this is a bit less problematic since I
mostly use it for web devel tracking anyway) and then rsync to the
webserver. However, this is definitely going in my collection of notes
and bookmarks for reference when I get to that point.
--
(please respond to the list as opposed to my email box directly,
unless you are supplying private information you don't want public
on the list)
prev parent reply other threads:[~2010-04-05 14:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-15 16:13 git http-backend error message Jeremiah Foster
2010-03-15 17:12 ` Junio C Hamano
2010-03-16 17:10 ` Jeremiah Foster
2010-04-05 14:52 ` Scott R. Godin [this message]
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='hpctg0$416$1@dough.gmane.org' \
--to=scottg.wp-hackers@mhg2.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).