How do I make a Git commit in the past?

Question

I'm converting everything over to Git for my own personal use and I found some old versions of a file already in the repository. How do I commit it to the history in the correct order according the file's "date modified" so I have an accurate history of the file?

I was told something like this would work:

git filter-branch --env-filter="GIT_AUTHOR_DATE=... --index-filter "git commit path/to/file --date " --tag-name-filter cat -- --all  

Answer

This is what worked for me:

git commit --date="10 day ago" -m "Your commit message" 

How can I add a file to the last commit in Git? [duplicate]

How do I push a local Git branch to master branch in the remote?