Skip to content

Instantly share code, notes, and snippets.

@Geri-Borbas
Created December 2, 2022 13:28
Show Gist options
  • Save Geri-Borbas/2995119b5d7f836a4d46fb3e0012523f to your computer and use it in GitHub Desktop.
Save Geri-Borbas/2995119b5d7f836a4d46fb3e0012523f to your computer and use it in GitHub Desktop.
Change latest commit date (and force push to remote).
git commit --amend --date="Wed Nov 30 14:55 2022 +0100" --no-edit
GIT_COMMITTER_DATE="Wed Nov 30 14:55 2022 +0100" git commit --amend --no-edit
git push origin main --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment