On Tue, 15 Oct 2013 16:24:50 +0800 lei yang <[email protected]> wrote:
> Is there a place record when I run "git pull" the last time Please note that while you've got an answer proposing a semi-working solution (that is, working until someone calls `touch .git/FETCH_HEAD`), to me, it seems that you're trying to look... Please keep in mind that while Git indeed keeps a timestamp within each commit, these timestamps are not used to order commits on the commit graph kept in the database. So while making Git tell you something about the history it maintains in terms of timestamps might be occasionally useful, in general it's advised to think in terms of changes: not "What changes the remote repository contains since timestamp X?" but "What changes the branch X fetched from the remote repository contains compared to my local branch Y? And in reverse?" -- this way you're playing by Git's rules. If you you desperately need to record the time of your fetches, I'd recommend to create a shell wrapper (or an alias, or a function [1]) which would log arguments with which it was called, and a timestamp, to a file and then call out to Git. 1. http://stackoverflow.com/a/19180954/720999 -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
