When commiting code on Git, very often I realize I forgot some little detail right after I end the commit operation. This is very annoying. Fortunately, we have the amend command. Recently I found a very cool trick to use with amend command: updating the date and time of the commit together with amend.
So, with those in hand, I’m now using a nice alias on my ~/.bashrc
file:
alias gitamend='git commit --amend --date="$(date -R)"'
And my own memory faults are now easily addressed.