# [git-pasky] updating tree and source files

2 messages from 2005-04-22 to 2005-04-22. Participants: Rhys Hardwick, Petr Baudis.
Thread: https://gitlist.dev/t/246

## Rhys Hardwick, 2005-04-22 16:50

Subject: [git-pasky] updating tree and source files
Message-ID: <200504221750.24188.rhys@rhyshardwick.co.uk>
URL: https://gitlist.dev/e/200504221750.24188.rhys%40rhyshardwick.co.uk

```
Hi

I have been looking through the scripts, but cannot find out whether when 
running: git pull, checkout-cache will be run if the tree is different.

My main question is, if there is a new version on the git server, and i do a 
git pull, will this update the source files.  Do I have to carry out some 
more commands in order for this to happen?

Sorry if this is a really newb question, but hopefully I should catch up soon!

Rhys



```

## Petr Baudis, 2005-04-22 17:16

Subject: Re: [git-pasky] updating tree and source files
Message-ID: <20050422171649.GD7173@pasky.ji.cz>
URL: https://gitlist.dev/e/20050422171649.GD7173%40pasky.ji.cz
In-Reply-To: <200504221750.24188.rhys@rhyshardwick.co.uk>

```
Dear diary, on Fri, Apr 22, 2005 at 06:50:23PM CEST, I got a letter
where Rhys Hardwick <rhys@rhyshardwick.co.uk> told me that...
> Hi

Hello,

> I have been looking through the scripts, but cannot find out whether when 
> running: git pull, checkout-cache will be run if the tree is different.
> 
> My main question is, if there is a new version on the git server, and i do a 
> git pull, will this update the source files.  Do I have to carry out some 
> more commands in order for this to happen?
> 
> Sorry if this is a really newb question, but hopefully I should catch up soon!

git pull will update your working tree if your working tree branch is
tracking the pulled remote branch. If you do just 'git pull', this is
always the case.

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
C++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor

```
