Update timestamp on git commit to now
Do you know the feeling? You have implemented a massive optimization, slashed a nasty bug or built a complex feature and made the commit. Then you check the time, and there's absolutely no way you could have finished this yet.
Now you can either be a good worker bee and keep pushing yourself, or you can be sensible and reward yourself for your excellent performance to create a subconscious conditioning towards good performance. Whenever you are finished rewarding yourself you can simply update the timestamp on the commit and push it.
Bonus points if you have a shell alias to do this.
$ GIT_COMMITTER_DATE="$(date)" git commit --amend --no-edit --date "$(date)"
0 comments
Reply