0

I'd like to know if Git be configured to set file dates based on the last commit date?

Currently when I checkout a branch it seems that the file dates are set to the current date.

Avalanchis
  • 4,500
  • 3
  • 39
  • 48

1 Answers1

0

Sure, do it in the post-checkout hook.

This hook can be used to perform repository validity checks, auto-display differences from the previous HEAD if different, or set working dir metadata properties.

jthill
  • 55,082
  • 5
  • 77
  • 137