* clone --bare vs push
[not found] <AANLkTi=+cRqD_CDFyaYj8uWOxUA1+5Dgr_pv1guaaT40@mail.gmail.com>
@ 2011-01-03 18:24 ` Levend Sayar
2011-01-03 18:41 ` Ævar Arnfjörð Bjarmason
2011-01-04 4:40 ` Neal Kreitzinger
0 siblings, 2 replies; 5+ messages in thread
From: Levend Sayar @ 2011-01-03 18:24 UTC (permalink / raw)
To: git
Hi, all.
We cloned a repo from github on our local server. Say X for this. At
that repo, we did
git clone --bare X y.git
Now y.git is ready for other machines to clone.
To update our upstream repo X, we do
git pull
and then
git push --all
to update y.git.
Now questions:
1) When I compare X/.git directory and y.git directory there are many
objects missing in y.git. What is the reason ?
2) git clone --bare is too fast. My .git directory is nearly 1GB. How
can it be copied that much fast ?
3) Is this more safe then git pull, git push
rm -rf y.git
git pull
git clone --bare X y.git
Namely bare cloning each time when we update our main repo ?
TIA
_lvnd_
(^_^)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: clone --bare vs push
2011-01-03 18:24 ` clone --bare vs push Levend Sayar
@ 2011-01-03 18:41 ` Ævar Arnfjörð Bjarmason
2011-01-04 4:40 ` Neal Kreitzinger
1 sibling, 0 replies; 5+ messages in thread
From: Ævar Arnfjörð Bjarmason @ 2011-01-03 18:41 UTC (permalink / raw)
To: Levend Sayar; +Cc: git
On Mon, Jan 3, 2011 at 19:24, Levend Sayar <levendsayar@gmail.com> wrote:
> 1) When I compare X/.git directory and y.git directory there are many
> objects missing in y.git. What is the reason ?
Maybe things were repacked.
> 2) git clone --bare is too fast. My .git directory is nearly 1GB. How
> can it be copied that much fast ?
It will use hardlinks when using the same filesystem. See
--no-hardlinks in git-clone(1).
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: clone --bare vs push
2011-01-03 18:24 ` clone --bare vs push Levend Sayar
2011-01-03 18:41 ` Ævar Arnfjörð Bjarmason
@ 2011-01-04 4:40 ` Neal Kreitzinger
2011-01-04 4:58 ` Jonathan Nieder
1 sibling, 1 reply; 5+ messages in thread
From: Neal Kreitzinger @ 2011-01-04 4:40 UTC (permalink / raw)
To: git
"Levend Sayar" <levendsayar@gmail.com> wrote in message
news:AANLkTi=RNDYrRbyEJXA_c30JEVr=SYUQ01cfA3FyWpLT@mail.gmail.com...
> Hi, all.
>
> We cloned a repo from github on our local server. Say X for this. At
> that repo, we did
>
> git clone --bare X y.git
>
> Now y.git is ready for other machines to clone.
>
> To update our upstream repo X, we do
>
> git pull
>
> and then
>
> git push --all
>
> to update y.git.
>
> Now questions:
>
> 1) When I compare X/.git directory and y.git directory there are many
> objects missing in y.git. What is the reason ?
>
> 2) git clone --bare is too fast. My .git directory is nearly 1GB. How
> can it be copied that much fast ?
>
> 3) Is this more safe then git pull, git push
>
> rm -rf y.git
> git pull
> git clone --bare X y.git
>
> Namely bare cloning each time when we update our main repo ?
>
> TIA
>
> _lvnd_
> (^_^)
you can also use the file:// url format to create a complete copy and not
use hardlinks. see git-clone manpage.
e.g. git clone --bare file:///fullpathto/X y.git
v/r,
Neal
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: clone --bare vs push
2011-01-04 4:40 ` Neal Kreitzinger
@ 2011-01-04 4:58 ` Jonathan Nieder
2011-01-04 5:29 ` Neal Kreitzinger
0 siblings, 1 reply; 5+ messages in thread
From: Jonathan Nieder @ 2011-01-04 4:58 UTC (permalink / raw)
To: Levend Sayar
Cc: git, Neal Kreitzinger, Ævar Arnfjörð Bjarmason
Neal Kreitzinger wrote:
> you can also use the file:// url format to create a complete copy and not
> use hardlinks. see git-clone manpage.
>
> e.g. git clone --bare file:///fullpathto/X y.git
Thanks, that's useful; cc-ing Levend.
[Side note: I wrote in the past:
| In traditional newsgroups it seems to be most common to just reply to
| the author by mail or follow-up to the group, so I wouldn't feel too
| bad.
but probably that was unclear of me. The convention on _this_ list[1] is
to reply to all participants in a thread, so new participants do not
need to subscribe if they don't want to. Thunderbird (e.g.) seems to
be good at doing that for what it's worth.]
[1] at least as I perceive it; please feel free to correct me if I
have misunderstood
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: clone --bare vs push
2011-01-04 4:58 ` Jonathan Nieder
@ 2011-01-04 5:29 ` Neal Kreitzinger
0 siblings, 0 replies; 5+ messages in thread
From: Neal Kreitzinger @ 2011-01-04 5:29 UTC (permalink / raw)
To: git
Cc: Levend Sayar, git, Neal Kreitzinger,
Ævar Arnfjörð Bjarmason
On 1/3/2011 10:58 PM, Jonathan Nieder wrote:
> Neal Kreitzinger wrote:
>
>> you can also use the file:// url format to create a complete copy and not
>> use hardlinks. see git-clone manpage.
>>
>> e.g. git clone --bare file:///fullpathto/X y.git
>
> Thanks, that's useful; cc-ing Levend.
>
> [Side note: I wrote in the past:
>
> | In traditional newsgroups it seems to be most common to just reply to
> | the author by mail or follow-up to the group, so I wouldn't feel too
> | bad.
>
> but probably that was unclear of me. The convention on _this_ list[1] is
> to reply to all participants in a thread, so new participants do not
> need to subscribe if they don't want to. Thunderbird (e.g.) seems to
> be good at doing that for what it's worth.]
>
> [1] at least as I perceive it; please feel free to correct me if I
> have misunderstood
This is a "reply all" from thunderbird. This looks like it is doing the
cc correctly...
v/r,
Neal
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-01-04 5:30 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <AANLkTi=+cRqD_CDFyaYj8uWOxUA1+5Dgr_pv1guaaT40@mail.gmail.com>
2011-01-03 18:24 ` clone --bare vs push Levend Sayar
2011-01-03 18:41 ` Ævar Arnfjörð Bjarmason
2011-01-04 4:40 ` Neal Kreitzinger
2011-01-04 4:58 ` Jonathan Nieder
2011-01-04 5:29 ` Neal Kreitzinger
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).