How can I see the time of my last git pull?

I did git pull, but now I want to know what time it happened. Is there a way to check the stretch time? Please note that when traction changes, NO changes occur. But maybe an SSH connection is being registered? I want to check this on my local machine, not on the server. Using Linux, git version 2.3.3.

+4
source share
1 answer

Git writes the FETCH_HEAD file every time you pull or select, even if there was nothing to pull. The file can be found at: .git/FETCH_HEAD. Just check the recent modification times of this file.

On Linux, you can use the following to check the last modified time:

date +%s -r .git/FETCH_HEAD

OSX , :

stat -f "%m" .git/FETCH_HEAD
+7

All Articles