git clone changes file modification time

后端 未结 6 894
谎友^
谎友^ 2021-02-02 06:37

When I clone a git repository using \"git clone ...\" command all cloned files in my local repository have the same modification time with date and time when

6条回答
  •  南方客
    南方客 (楼主)
    2021-02-02 07:25

    Another option for resetting the mtime is git-restore-mtime.

    sudo apt install git-restore-mtime # Debian/Ubuntu example
    git clone 
    cd 
    git restore-mtime
    

提交回复
热议问题