github - How do I add a new commit with a commit date of two hours ago in git? -
i working on project , multiple reasons, need commit of code have completed have date of 2 hours ago. there way this? not familiar git. usually, type in "git commit -m 'message'". appreciated.
if want set author date, use --date suggested above. if want set committer date then:
git_committer_date="<some date>" git commit -m 'message'
Comments
Post a Comment