all InfoSec news
How do I make a Git commit in the past?
Jan. 27, 2024, 6:42 p.m. | Atul Tripathi
DEV Community dev.to
How can I create a Git commit for a previous date? Here's the process:
Add your changes:
git add .Commit your changes with a specified date:
git commit --date "10 day ago" -m "Your commit message"
or
git commit --date "24-02-2023" -m "Your commit message"Finally, push your code:
git push
Thank you, and happy coding!
More from dev.to / DEV Community
Jobs in InfoSec / Cybersecurity
Social Engineer For Reverse Engineering Exploit Study
@ Independent study | Remote
Senior Software Engineer, Security
@ Niantic | Zürich, Switzerland
Consultant expert en sécurité des systèmes industriels (H/F)
@ Devoteam | Levallois-Perret, France
Cybersecurity Analyst
@ Bally's | Providence, Rhode Island, United States
Digital Trust Cyber Defense Executive
@ KPMG India | Gurgaon, Haryana, India
Program Manager - Cybersecurity Assessment Services
@ TestPros | Remote (and DMV), DC