I would like to push one of my old archived projects up to GitHub and I'd like to keep the original file date (27/08/2011). Is it possible? Thanks.
Each commit stores the date the commit has been authored and the date the commit has been committed into the repository.
Performing a git log --format=fuller
operation of a repository will print those dates.
When you push to GitHub, those commits are being pushed unmodified, with all their meta-data information. Thus the dates those commits have been performed on will be preserved.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With