Skip to content

Instantly share code, notes, and snippets.

@sakkke
Created January 2, 2023 00:30
Show Gist options
  • Save sakkke/b216d9bd01f3b0104f1ade17cff4c44e to your computer and use it in GitHub Desktop.
Save sakkke/b216d9bd01f3b0104f1ade17cff4c44e to your computer and use it in GitHub Desktop.
One-liner of editing author and committer date
git commit --amend --date "$(date --date="$(git show --format=%ai --no-patch HEAD) 2 minutes ago" '+%Y/%m/%d %H:%M:%S %z')" --no-edit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment