Skip to content

Use Operation History

Who is this for (1)

The spec-kitty ops command group provides read-only access to your git operation history via git reflog. Use it to review recent actions and understand what happened in your repository.

View recent operations

Show the last 20 operations (the default):

Terminal window
spec-kitty ops log

Limit the number of entries

Show only the last 5 operations:

Terminal window
spec-kitty ops log --limit 5
# or
spec-kitty ops log -n 5

Show verbose details

Include full commit hashes and extended information:

Terminal window
spec-kitty ops log --verbose
# or
spec-kitty ops log -v

Undo operations

Git does not have reversible operation history, so spec-kitty ops undo is not supported. The command will print guidance on the git alternatives you can use manually:

SituationGit command
Undo last commit, keep changes stagedgit reset --soft HEAD~1
Undo last commit, discard changesgit reset --hard HEAD~1
Create a reverting commitgit revert <commit>
Find previous repository statesgit reflog

Command reference

spec-kitty ops log [OPTIONS]
Options:
--limit, -n INTEGER Number of operations to show (default: 20)
--verbose, -v Show full operation IDs and details
--help Show this message and exit
spec-kitty ops undo
Not supported for git. Prints alternative git commands.