# A trivial question on GIT

4 messages from 2007-01-23 to 2007-01-23. Participants: Allexio Ju, J. Bruce Fields, Bill Lear, Matthias Kestenholz.
Thread: https://gitlist.dev/t/6490

## Allexio Ju, 2007-01-23 19:45

Subject: A trivial question on GIT
Message-ID: <a02278b00701231145l31e1be2dpff0930cbc9d6fb6c@mail.gmail.com>
URL: https://gitlist.dev/e/a02278b00701231145l31e1be2dpff0930cbc9d6fb6c%40mail.gmail.com

```
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, 2007-01-23 19:51

Subject: Re: A trivial question on GIT
Message-ID: <20070123195144.GE5779@fieldses.org>
URL: https://gitlist.dev/e/20070123195144.GE5779%40fieldses.org
In-Reply-To: <a02278b00701231145l31e1be2dpff0930cbc9d6fb6c@mail.gmail.com>

```
On Tue, Jan 23, 2007 at 11:45:14AM -0800, Allexio Ju wrote:
> 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, 2007-01-23 19:57

Subject: Re: A trivial question on GIT
Message-ID: <17846.26795.858074.264027@lisa.zopyra.com>
URL: https://gitlist.dev/e/17846.26795.858074.264027%40lisa.zopyra.com
In-Reply-To: <a02278b00701231145l31e1be2dpff0930cbc9d6fb6c@mail.gmail.com>

```
On Tuesday, January 23, 2007 at 11:45:14 (-0800) Allexio Ju writes:
>...
>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, 2007-01-23 20:03

Subject: Re: A trivial question on GIT
Message-ID: <1169582605.1608.92.camel@localhost.localdomain>
URL: https://gitlist.dev/e/1169582605.1608.92.camel%40localhost.localdomain
In-Reply-To: <a02278b00701231145l31e1be2dpff0930cbc9d6fb6c@mail.gmail.com>

```
On Tue, 2007-01-23 at 11:45 -0800, Allexio Ju wrote:
> 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

```
