* First dumb question to the list :)
@ 2006-03-16 17:49 Paolo Ciarrocchi
2006-03-16 22:11 ` Alex Riesen
2006-03-18 4:25 ` Jeff King
0 siblings, 2 replies; 3+ messages in thread
From: Paolo Ciarrocchi @ 2006-03-16 17:49 UTC (permalink / raw)
To: git
Hi all,
I just installed git and cogito from Ubuntu Drapper,
performed a simple cg-clone git://URItoLinus2.6 linux2.6
and aftwer more or less one hour I had a clone of Linus 2.6 tree.
So far so good.
What I want to do is to simply keep my repository aligned with Linus
so I simply have to do:
cd linus2.6
cg-fetch
How can I confg git in order to, by default, use git instead of rsync ?
Now my dumb question is... since I want to build that kernel do I have
to locally clone/copy it in order to don't modify any file on my local
tree?
If I don't do so, I guess git/cogito will not be happy when I run
cg-fetch, right?
Thanks!
--
Paolo
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: First dumb question to the list :)
2006-03-16 17:49 First dumb question to the list :) Paolo Ciarrocchi
@ 2006-03-16 22:11 ` Alex Riesen
2006-03-18 4:25 ` Jeff King
1 sibling, 0 replies; 3+ messages in thread
From: Alex Riesen @ 2006-03-16 22:11 UTC (permalink / raw)
To: Paolo Ciarrocchi; +Cc: git
Paolo Ciarrocchi, Thu, Mar 16, 2006 18:49:16 +0100:
> What I want to do is to simply keep my repository aligned with Linus
> so I simply have to do:
> cd linus2.6
> cg-fetch
Or "git pull"
> How can I confg git in order to, by default, use git instead of rsync ?
By editing .git/remotes/origin and replacing "rsync://rsync." with
"git://git." (I think the rest is identical, but you better check).
> Now my dumb question is... since I want to build that kernel do I have
> to locally clone/copy it in order to don't modify any file on my local
> tree?
No. As long you don't modify anything under .git you can always get to
any state of your kernel tree you ever had (assuming you _use_ git, of
course).
Or you can just revert your changes after you've played enough with
them: "git reset --hard".
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: First dumb question to the list :)
2006-03-16 17:49 First dumb question to the list :) Paolo Ciarrocchi
2006-03-16 22:11 ` Alex Riesen
@ 2006-03-18 4:25 ` Jeff King
1 sibling, 0 replies; 3+ messages in thread
From: Jeff King @ 2006-03-18 4:25 UTC (permalink / raw)
To: git
On Thu, Mar 16, 2006 at 06:49:16PM +0100, Paolo Ciarrocchi wrote:
> performed a simple cg-clone git://URItoLinus2.6 linux2.6
> [...]
> What I want to do is to simply keep my repository aligned with Linus
> so I simply have to do:
> cd linus2.6
> cg-fetch
> [...]
> How can I confg git in order to, by default, use git instead of rsync ?
It should use the git protocol by default; cg-clone will make an
'origin' branch (cogito doesn't support .git/remotes/ yet) pointing to
the original source. Future 'cg-fetch' invocations default to the origin
branch.
Try using 'cg-branch-ls' to see what's on your origin branch.
> Now my dumb question is... since I want to build that kernel do I have
> to locally clone/copy it in order to don't modify any file on my local
> tree?
> If I don't do so, I guess git/cogito will not be happy when I run
> cg-fetch, right?
cg-fetch just pulls Linus' changes to your 'origin' head. You will then
have to cg-merge the changes into your branch. You can do both at once
with cg-update. If there are conflits, then cogito will notify you.
-Peff
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-03-18 4:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-16 17:49 First dumb question to the list :) Paolo Ciarrocchi
2006-03-16 22:11 ` Alex Riesen
2006-03-18 4:25 ` Jeff King
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox