Last active
June 13, 2025 19:01
-
-
Save mmodrow/7097645d812df6950cf09145e8b5a53e to your computer and use it in GitHub Desktop.
Manually set current git commit date
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[CmdletBinding()] | |
param ( | |
[Parameter(Mandatory)] | |
[datetime] | |
$dateTime | |
) | |
$dateString = $dateTime.ToString("yyyy-MM-ddTHH:mm:ss") | |
git commit --amend --date=$dateString --no-edit --reset-author |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment