* libata-dev git question:
@ 2007-12-02 14:54 Mark Lord
2007-12-02 15:10 ` Jeff Garzik
2007-12-03 4:33 ` Tejun Heo
0 siblings, 2 replies; 4+ messages in thread
From: Mark Lord @ 2007-12-02 14:54 UTC (permalink / raw)
To: Jeff Garzik, Tejun Heo, IDE/ATA development list
I am below "novice" when it comes to git:
> $ git-pull --update-head-ok --tags git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev.git
> Warning: No merge candidate found because value of config option
> "branch.master.merge" does not match any remote branch fetched.
> No changes.
..
Is that "normal" ?
Is that even the correct command to update my entire local existing copy of Jeff's git tree?
git version 1.5.2.5
??
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: libata-dev git question:
2007-12-02 14:54 libata-dev git question: Mark Lord
@ 2007-12-02 15:10 ` Jeff Garzik
2007-12-02 16:48 ` Mark Lord
2007-12-03 4:33 ` Tejun Heo
1 sibling, 1 reply; 4+ messages in thread
From: Jeff Garzik @ 2007-12-02 15:10 UTC (permalink / raw)
To: Mark Lord; +Cc: Tejun Heo, IDE/ATA development list
Mark Lord wrote:
> I am below "novice" when it comes to git:
>
>> $ git-pull --update-head-ok --tags
>> git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev.git
>> Warning: No merge candidate found because value of config option
>> "branch.master.merge" does not match any remote branch fetched.
>> No changes.
> ..
>
> Is that "normal" ?
Yes.
> Is that even the correct command to update my entire local existing copy
> of Jeff's git tree?
No.
Generally I would use
cd $repo
git-checkout master # if not already there
git pull # fetches new objects, updates 'master'
git-fetch -f $URL upstream:upstream # fetch updated branch
git-fetch -f $URL mv-ncq:mv-ncq
git-fetch -f $URL upstream-fixes:upstream-fixes
git-fetch -f $URL upstream:upstream
... continue for each branch you like...
There is probably an easier way to get it to download all branches, even
if they have been rebased.
Jeff
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: libata-dev git question:
2007-12-02 15:10 ` Jeff Garzik
@ 2007-12-02 16:48 ` Mark Lord
0 siblings, 0 replies; 4+ messages in thread
From: Mark Lord @ 2007-12-02 16:48 UTC (permalink / raw)
To: Jeff Garzik; +Cc: Tejun Heo, IDE/ATA development list
Jeff Garzik wrote:
> Mark Lord wrote:
>> I am below "novice" when it comes to git:
>>
>>> $ git-pull --update-head-ok --tags
>>> git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev.git
>>> Warning: No merge candidate found because value of config option
>>> "branch.master.merge" does not match any remote branch fetched.
>>> No changes.
>> ..
>>
>> Is that "normal" ?
>
> Yes.
>
>
>> Is that even the correct command to update my entire local existing
>> copy of Jeff's git tree?
>
> No.
>
> Generally I would use
>
> cd $repo
> git-checkout master # if not already there
> git pull # fetches new objects, updates 'master'
> git-fetch -f $URL upstream:upstream # fetch updated branch
> git-fetch -f $URL mv-ncq:mv-ncq
> git-fetch -f $URL upstream-fixes:upstream-fixes
> git-fetch -f $URL upstream:upstream
> ... continue for each branch you like...
>
> There is probably an easier way to get it to download all branches, even
> if they have been rebased.
..
Thanks. I was just going by your KHGTG page until now.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: libata-dev git question:
2007-12-02 14:54 libata-dev git question: Mark Lord
2007-12-02 15:10 ` Jeff Garzik
@ 2007-12-03 4:33 ` Tejun Heo
1 sibling, 0 replies; 4+ messages in thread
From: Tejun Heo @ 2007-12-03 4:33 UTC (permalink / raw)
To: Mark Lord; +Cc: Jeff Garzik, IDE/ATA development list
[-- Attachment #1: Type: text/plain, Size: 936 bytes --]
Attached is the script I use to keep a tree synced with upstream tree.
.git/origin points to upstream repo like the following.
master.kernel.org /pub/scm/linux/kernel/git/jgarzik/libata-dev.git ssh
If you have ssh access to the origin, specify ssh as above, everything
will go over a ssh channel. If you don't, you need rsync and git access
to the machine.
The script keeps the tree heads identical to the upstream tree so don't
create custom branches in the tree. They'll go away when you run
git-sync.sh the next time. I have ~/os/linux-2.6 and
~/os/ata/work/libata-dev trees to track upstream and ~/os/work and
~/os/ata/work trees where I work on and fetches / pulls necessary heads
from the two upstream clones.
If you make your work trees' alternates files to point to the upstream
clones, having separate upstream and work trees don't waste much space
and it's easy to check what's going on upstream that way.
--
tejun
[-- Attachment #2: git-sync.sh --]
[-- Type: application/x-shellscript, Size: 726 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-12-03 4:33 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-02 14:54 libata-dev git question: Mark Lord
2007-12-02 15:10 ` Jeff Garzik
2007-12-02 16:48 ` Mark Lord
2007-12-03 4:33 ` Tejun Heo
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).