Conversation

Jarkko Sakkinen

amending #git #commit’s date to the latest:

git commit --amend --date="$(date -R)"

#note #reminder

2
0
1

@jarkko I always use
`git commit --amend --reset-author` which resets the date as well. 🤷

1
0
1

@jarkko if you're the author --reset-author will do the same.

1
0
0
@Aissen thanks did not know that option!
0
0
1
@kidney thanks! i still keep on using mostly the date update as for me the most common use case would be to update a patch series, which sometimes can contain a patch or two from another author even is 80% patches are my own work. less risk of collateral damage :-)
0
0
0