I want to have a simple git post-commit action that prints the date of the last time you pushed your changes to each remote. The motivation for this is a simple reminder of how far out of sync your repo may be becoming or a nice reminder to back up your changes to a remote bare repo.
Does this exist and if not any quick suggestions on how to do this?
If it doesn't exist, my initial thoughts would be:
- on post-commit, do a 'git log [remote/branch]' for each remote branch in the .git/refs/remotes/ and parse out the date information.
Any help on development strategies for these steps would be welcome (command line linux is my platform)
Thanks!