Go to file
n loewen (aider) ecb59fa6c4 fix: Prevent resize handle from overwriting commit details 2025-06-08 09:23:21 +01:00
.gitignore Add gitignore 2025-05-05 10:59:19 +01:00
gtm fix: Prevent resize handle from overwriting commit details 2025-06-08 09:23:21 +01:00
readme.md Readme: add notes about keyboard shortcuts 2025-06-08 00:52:46 +01:00
screenshot.png Add screenshot 2025-05-05 11:03:46 +01:00

readme.md

gtm: git time machine

Quickly browse through previous versions of a file.

Basic usage: gtm [filename]

Options

-h, --help        show this help message and exit
-d, --diff        Highlight newly added and deleted lines
--diff-additions  Highlight newly added lines in green
--diff-deletions  Show deleted lines in red
--no-mouse        Disable mouse support
-v, --version     Show version number

Interface

  • use the up/down arrow keys (or h/l) to switch commits in the left pane, or scroll through the file in the right pane

  • use the left/right arrow keys (or j/k) to switch panes

  • use the mouse to select commits, switch panes, and resize the panes by dragging the divider

  • press 's' to show/hide the sidebar

  • press 'm' to turn mouse support on/off

  • You can select text with the mouse, but you have to go a bit slowly. (Fixing that is on the TODO list.)

screenshot