retroactive
v1.0.0
Published
CLI tool to easily change the date of one or multiple Git commits
Downloads
102
Maintainers
Readme
retroactive
Easily change the date of one or multiple Git commits.
retroactive is a Node.js CLI tool that makes it simple to rewrite author and/or committer dates on unpushed Git commits — via an interactive TUI.
Install
npm install -g retroactiveUsage
retroYou'll be prompted to choose a mode:
- Manual — select one or more commits and set dates via absolute or relative shift
- Cascade — pick a starting commit and all commits after it are retroactively assigned realistic random dates spread between that commit's date and now
- Branch Cascade — automatically detect and retroactively date all commits unique to the current branch
Shift Format
Shifts support days, hours, minutes, and seconds. Combine them freely:
+2h— 2 hours forward-1d— 1 day backward+1d2h30m— 1 day, 2 hours, and 30 minutes forward-45s— 45 seconds backward
Safety
retroactive warns you if any selected commit has already been pushed to a remote branch. Rewriting pushed commits requires a force-push.
License
MIT
