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

Popular posts from this blog

1111. appearing after print sequence - php -

node.js - Express and Redis - If session exists for this user, don't allow access -

excel - I can't get the attachement of the email PHP -