I have various old git repos, including one or two converted from older repo managers (e.g. Perforce). They include commit comments from many years ago—some of the commits are older than a couple of the people I work with! But now that these projects are in GitHub, the commit dates are completely wrong. If I type
git log for a file at the command line, and the most recent commit date is from several years ago, the same commit in GitHub has a much more recent timestamp.
The way I went about it was to create a new (private) repo in GitHub, type
git remote add origin firstname.lastname@example.org:myaccount/mynewgithubrepo.git, and
git push -u origin master. Nothing fancy.
Does GitHub just not like old dates, or is there data somewhere in my git repos that might not necessarily match what’s in the git log? I know I’ve used
git commit --date for some commits, which look correct in
git log, but not in GitHub. Are there any tricks to get the dates in GitHub to match what’s in the git log? Because the git log dates are correct, as far as I’m concerned, and they’re the ones I want to see in GitHub.