Skip to content

Simple CLI to change old commits author and committer dates.

License

Notifications You must be signed in to change notification settings

dimofte/git-change-date

 
 

Repository files navigation

git-change-date

Simple command line to change old commits author and committer dates.

Sample Usage

Installation

npm install -g git-change-date

CLI Usage

Please ensure that you are on the correct directory of the repository you want to modify and that there are no unstaged changes before running this.

Usage: git-change-date [options]

Options:

--path      repository path, defaults to current directory
--count     Number of commits to show, defaults to 5
--hash      Search commits with this hash (optional)
--dev       Show complete error stack (optional)

When you run this command you will be prompted to:

  • Enter commit number in the list
  • Enter the new date in natural language. ISO 8601 formats are also supported. See chrono-node for more details.

After making modifications you will have to force push to remote repositories and anyone who has pulled these commits or any future commits will have to reset and pull.

License

MIT @ Kareem Elbahrawy

About

Simple CLI to change old commits author and committer dates.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%