Skip to content

Instantly share code, notes, and snippets.

@lppedd
Forked from PradyumnaKrishna/Commit Date.md
Created June 12, 2023 13:07
Show Gist options
  • Save lppedd/953d3b0bfbfca03ec1a9a6db29db81f6 to your computer and use it in GitHub Desktop.
Save lppedd/953d3b0bfbfca03ec1a9a6db29db81f6 to your computer and use it in GitHub Desktop.
Change Git Commit Date

Change Git Commit Date

  • Commit your git using

    git add -A
    git commit -m "commit message"
    
  • Change time or date of your latest commit

    GIT_COMMITTER_DATE="Wed Sep 9 22:00 2020 +0530" git commit --amend --date="Wed Sep 9 22:00 2020 +0530"
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment