threads / discuss / 246

[git-pasky] updating tree and source files

Subject: [git-pasky] updating tree and source files

## tl;dr

2 messages between Apr 22, 2005 and Apr 22, 2005.

replies: 1people: 2as markdown or json

Rhys Hardwick· Apr 22, 2005, 16:50 UTC · lore
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· Apr 22, 2005, 17:16 UTC · re: Rhys Hardwick · lore

Re: [git-pasky] updating tree and source files

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,
Show 8 quoted lines
> 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

← back to recent threads