threads / discuss / 25076

unable to retrieve new files from the server

Subject: unable to retrieve new files from the server

## tl;dr

6 messages between Sep 11, 2010 and Sep 11, 2010.

replies: 5people: 4as markdown or json

Andy· Sep 11, 2010, 16:46 UTC · lore
i did a git clone https//..../abc.git.  everything was fine.

Now there are new files on the server and I did a git pull and it said everything is up to date. But I still do not see the new files on my machine.

How do I pull all new files down to my machine?
Sorry, I'm new to Git.
Thanks
-- 
View this message in context: http://git.661346.n2.nabble.com/unable-to-retrieve-new-files-from-the-server-tp5521801p5521801.html
Sent from the git mailing list archive at Nabble.com.
Ævar Arnfjörð Bjarmason· Sep 11, 2010, 16:51 UTC · re: Andy · lore

Re: unable to retrieve new files from the server

On Sat, Sep 11, 2010 at 16:46, Andy <hoangtu69@yahoo.com> wrote:
Show 8 quoted lines
>
> i did a git clone https//..../abc.git.  everything was fine.
>
> Now there are new files on the server and I did a git pull and it said
> everything is up to date.  But I still do not see the new files on my
> machine.
>
> How do I pull all new files down to my machine?

Did you commit those new files? And did you commit them to the tree "git pull" is pulling from?

Andy· Sep 11, 2010, 16:55 UTC · re: Ævar Arnfjörð Bjarmason · lore

Re: unable to retrieve new files from the server

I did not commit these files. These files were committed by others. All I want is to make sure my local copy has all the latest from the server.

What command should I use?
-- 
View this message in context: http://git.661346.n2.nabble.com/unable-to-retrieve-new-files-from-the-server-tp5521801p5521820.html
Sent from the git mailing list archive at Nabble.com.
Tomas Carnecky· Sep 11, 2010, 17:27 UTC · re: Andy · lore

Re: unable to retrieve new files from the server

On 9/11/10 6:55 PM, Andy wrote:
Show 5 quoted lines
> 
> I did not commit these files.  These files were committed by others.  All I
> want is to make sure my local copy has all the latest from the server.
> 
> What command should I use?

If you are using dumb http, you need to run 'git update-server-info' after each push to the server. Otherwise pull won't see the new commits.

tom
Jakub Narebski· Sep 11, 2010, 17:41 UTC · re: Andy · lore

Re: unable to retrieve new files from the server

Andy <hoangtu69@yahoo.com> writes:
Show 7 quoted lines
> I did a git clone https://..../abc.git.  everything was fine.
> 
> Now there are new files on the server and I did a git pull and it said
> everything is up to date.  But I still do not see the new files on my
> machine.  
> 
> How do I pull all new files down to my machine?

Did those files were comitted? If you are using "dumb" HTTP transport, is git-update-server-info run on server after committing?

-- 
Jakub Narebski
Poland
ShadeHawk on #git
Andy· Sep 11, 2010, 20:08 UTC · re: Jakub Narebski · lore

Re: unable to retrieve new files from the server

yes, those files were committed already but that's not the issue. Once again, here's what I want to do.

Everyday, I want to synchronize my local working directory with the server so that I have the latest before I start working. What's the simplest way to do it using git?

-- 
View this message in context: http://git.661346.n2.nabble.com/unable-to-retrieve-new-files-from-the-server-tp5521801p5522133.html
Sent from the git mailing list archive at Nabble.com.

← back to recent threads