threads / discuss / 6490

A trivial question on GIT

Subject: A trivial question on GIT

## tl;dr

4 messages between Jan 23, 2007 and Jan 23, 2007.

replies: 3people: 4as markdown or json

Allexio Ju· Jan 23, 2007, 19:45 UTC · lore
Hi,

I have trivial question on GIT. I've made local copy of Linus's linux-2.6.git repository with following git command, --- # git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git linux-2.6.git ---

After this, I would like to know how to synchronize local copy and keep updated with Linus's. I guess cloning everyday would be bad idea as it is heavy operation. Can someone guide me on how to?

Thank you,
Allexio
J. Bruce Fields· Jan 23, 2007, 19:51 UTC · re: Allexio Ju · lore

Re: A trivial question on GIT

On Tue, Jan 23, 2007 at 11:45:14AM -0800, Allexio Ju wrote:
Show 12 quoted lines
> I have trivial question on GIT.
> I've made local copy of Linus's linux-2.6.git repository with
> following git command,
> ---
> # git clone 
> git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
> linux-2.6.git
> ---
> 
> After this, I would like to know how to synchronize local copy and
> keep updated  with Linus's.
> I guess cloning everyday would be bad idea as it is heavy operation.
Yes!
> Can someone guide me on how to?
Just run:
	git fetch
--b.
Bill Lear· Jan 23, 2007, 19:57 UTC · re: Allexio Ju · lore

Re: A trivial question on GIT

On Tuesday, January 23, 2007 at 11:45:14 (-0800) Allexio Ju writes:
Show 5 quoted lines
>...
>After this, I would like to know how to synchronize local copy and
>keep updated  with Linus's.
>I guess cloning everyday would be bad idea as it is heavy operation.
>Can someone guide me on how to?

cd linux-2.6.git git pull

Bill
Matthias Kestenholz· Jan 23, 2007, 20:03 UTC · re: Allexio Ju · lore

Re: A trivial question on GIT

On Tue, 2007-01-23 at 11:45 -0800, Allexio Ju wrote:
Show 15 quoted lines
> Hi,
> 
> I have trivial question on GIT.
> I've made local copy of Linus's linux-2.6.git repository with
> following git command,
> ---
> # git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
> linux-2.6.git
> ---
> 
> After this, I would like to know how to synchronize local copy and
> keep updated  with Linus's.
> I guess cloning everyday would be bad idea as it is heavy operation.
> Can someone guide me on how to?
> 
Yes, go into the directory and execute git pull
If you want to know more, a good start is http://git.or.cz/
There you'll find links to tutorials and more.
Matthias

← back to recent threads