
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Easily change the date of the previous git commit
Make sure you have nodejs
, npm
and git
installed first, and then run the following:
$ npm install git-date -g
git-date
uses a hyphenated alias that allows you to run it as a native git command:
$ git date <date string>
Because git-date
uses the full power of the date library provided by sugarjs
, you can use a very large variety of commands to change the date:
$ git date 2010
$ git date 2010-05
$ git date 2010-05-25
$ git date 2010.05.25
$ git date 2010/05/25
$ git date 05-25-2010
$ git date 05/25/2010
$ git date 05.25.2010
$ git date 25 May 2010
$ git date May 2010
$ git date Tuesday May 25th, 2010
$ git date the day after tomorrow
$ git date one day before yesterday
$ git date 2 days after monday
$ git date 2 weeks from monday
$ git date a second ago
$ git date 25 years from now
$ git date last wednesday
$ git date next friday
$ git date this week tuesday
$ git date monday of last week
$ git date May 25th of next year
$ git date the last day of March
$ git date the 23rd of last month
$ git date the beginning of this week
$ git date the end of next month
$ git date the last day of the year
$ git date last month
$ git date next year
$ git date 12pm
$ git date 12:30pm
$ git date 12:30:40
$ git date 12:30:40.299
$ git date 12:30:40.299+01:00
$ git date 2010-05-25T12:30:40.299Z
$ git date 2010-05-25T12:30:40.299+01:00
FAQs
easily change the date of the previous git commit
We found that git-date demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.