How do I check the date and time of the latest git pull that was executed? I frequently need to know when the code changed on a server when something goes wrong.
How do I check the date and time of the latest git pull that
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
git showcommand shows the date of the most recent commit. This isn’t the date at which the commit was pulled to the local repository, but Git doesn’t keep such pull information.You may be able to find the time of the last pull using the ctime (creation time) of the files on the server. For example:
shows the ctime of each file, sorted with the most recent first.