how to delete already created commit date? #177202
Unanswered
JaimsTomas
asked this question in
Programming Help
Replies: 2 comments
This comment was marked as off-topic.
This comment was marked as off-topic.
-
|
Hi @EricHardins 👋 You can’t delete a commit date in Git, but you can change it by rewriting the commit history. 🕒 Change the Most Recent Commit DateGIT_COMMITTER_DATE="2024-10-10 12:00:00" git commit --amend --no-edit --date "2024-10-10 12:00:00"This command updates both the author and committer dates of your last commit. 🧩 Change an Older Commit’s DateIf you need to edit an older commit: git rebase -i HEAD~n(Replace git rebase --continue
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Discussion Type
Product Feedback
Discussion Content
hello, sir.
If you know about that, please give me know.
thank you for your reading.
Beta Was this translation helpful? Give feedback.
All reactions