Git marking all new commits as occurring "3 months ago"
I started a new repo and pushed something towards it, and my gitlog states that it was created 3 months ago. When I check my github contributions calendar it is listed as being created 3 months ago. All new files I create and commit now are marked as committed 3 months ago. How do I reset my git commit date of the current date?
+3
source to share
1 answer
You can use a script to change the date of the committer and author of any git commit:
See How do I move a file back in time?
git rcd @ "1 hour ago"
Check also if you haven't defined in your current environment variables GIT_COMMITTER_DATE
or GIT_AUTHOR_DATE
: this explains why creating a new commit doesn't use the current date.
+1
source to share