▲ | commandlinefan 6 days ago | |||||||
I noticed that right away, too - I didn't know you could force backdates of git history like that. | ||||||||
▲ | mananaysiempre 6 days ago | parent | next [-] | |||||||
The GIT_AUTHOR_DATE and GIT_COMMITTER_DATE environment variables[1] are what you use for things like that. (The former can also be overridden by the --date= option to git commit, and there’s also various situational stuff like --reset-author for git commit or --reset-author-date and --committer-date-is-author-date for git rebase. No, that last one is not parody.) | ||||||||
▲ | Tor3 6 days ago | parent | prev | next [-] | |||||||
I have source I wrote using SCCS as version control, which later was moved to CVS, preserving the commits as well as commit dates, and at some point moved to Git, again preserving commits and dates. So some of my personal Git repositories have commit entries going back to the late eighties. For any ordinary commit you can simply include "--date=" with the 'git commit' command, e.g. -m "This is an old change" --date="2001-03-02 18:05:47" | ||||||||
| ||||||||
▲ | int_19h 5 days ago | parent | prev | next [-] | |||||||
You might find this repo interesting: | ||||||||
▲ | meesles 6 days ago | parent | prev [-] | |||||||
All git data can be modified |