Skip to content

Instantly share code, notes, and snippets.

@PradyumnaKrishna
Last active June 27, 2024 19:12
Show Gist options
  • Save PradyumnaKrishna/b0031d64210a79c3794d91720b30f8fa to your computer and use it in GitHub Desktop.
Save PradyumnaKrishna/b0031d64210a79c3794d91720b30f8fa 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