Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

change commit date linux

# First: Commit your message normally.
# Second: then run
GIT_COMMITTER_DATE="Mon Feb 28 14:35:42 2022 -0300" git commit --amend --no-edit --date "Mon Feb 28 14:35:42 2022 -0300"

#This will changed the date of the last commit
 
PREVIOUS NEXT
Tagged: #change #commit #date #linux
ADD COMMENT
Topic
Name
1+9 =