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 -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -