# git check out file time

2 messages from 2010-08-07 to 2010-08-07. Participants: Tong Sun, Jakub Narebski.
Thread: https://gitlist.dev/t/24658

## Tong Sun, 2010-08-07 04:54

Subject: git check out file time
Message-ID: <AANLkTinuD8YQ+maWwD3v1C0B4YCOdTS4OsVjHLizga3c@mail.gmail.com>
URL: https://gitlist.dev/e/AANLkTinuD8YQ%2BmaWwD3v1C0B4YCOdTS4OsVjHLizga3c%40mail.gmail.com

```
Hi,

Quick Q, is it possible to keep the original file time from the git
server when checking out / cloning a local repo?

When I did

 git clone git://git.remote...

All my local git files are set to the check out time.

Please help and CC me when replying.

Thanks

```

## Jakub Narebski, 2010-08-07 13:46

Subject: Re: git check out file time
Message-ID: <m3aaoyo7sz.fsf@localhost.localdomain>
URL: https://gitlist.dev/e/m3aaoyo7sz.fsf%40localhost.localdomain
In-Reply-To: <AANLkTinuD8YQ+maWwD3v1C0B4YCOdTS4OsVjHLizga3c@mail.gmail.com>

```
Tong Sun <suntong001@gmail.com> writes:

> Quick Q, is it possible to keep the original file time from the git
> server when checking out / cloning a local repo?
> 
> When I did
> 
>  git clone git://git.remote...
> 
> All my local git files are set to the check out time.
> 
> Please help and CC me when replying.

Only with third-party extra tools such as Metastore (or etckeeper that
uses it), or git-cache-meta (or IsiSetup), see
  https://git.wiki.kernel.org/index.php/Interfaces,_frontends,_and_tools


Git itself doesn't store original file time, and with its intended use
it would screw up mtime-based make rebuilding.

HTH
-- 
Jakub Narebski
Poland
ShadeHawk on #git

```
