GLI

Rewriting History

Precision tools for modifying commit metadata.

Changing history can be complex. gli provides interactive tools to modify commit metadata without memorizing git rebase or filter-branch commands.

Warning

These commands rewrite history. Do not use them on public/shared branches unless you know what you are doing.

Interaction Pattern

When using history modification tools (-ca and -ct), gli will first ask you to select the Scope of the change:

  1. Last Commit Only: Target only the most recent commit (HEAD).
  2. Specific Commit: Prompts you to enter a specific commit hash.
  3. All Commits: Rewrites the identity or time for the entire branch history.

Change Author

Update the author name and email for your commits.

gli -ca
# or
gli --changeAuthor

Change Message

Update the commit message of the most recent commit.

Note

This tool specifically targets the last commit only.

gli -cm
# or
gli --changeMessage

This is equivalent to git commit --amend but simplified into a single prompt.

Change Time

Update the timestamp of your commits. If you don't provide a date string as an argument, gli will guide you through an interactive date and time picker.

gli -ct "2023-10-27 14:30"
# or simply
gli -ct

On this page