Is possible change the commit date on git?

git

Solution

If it is your latest commit:

git commit --amend --date="Wed Jan 13 12:00 2014 +0100"

If it is for example your 5th last commit, you can do an interactive rebase and edit the commit:

git rebase -i HEAD~5
<find the commit and change 'pick' to 'e', save and close file>
git commit --amend --date="Wed Jan 13 12:00 2014 +0100"
git rebase --continue

Keep in mind that this rewrites history.

Problem

When I commited my work, the pc date was 02/13/2014, but the correct date was 01/13/2014. Is possible the change commit date to the correct date?

Original source

Related problems