giff

command module
v0.2.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2026 License: MIT Imports: 13 Imported by: 0

README




giff


giff

English | 日本語

giff is a terminal-based Git diff viewer. It watches your working tree and shows diffs in real-time.

giff screenshot

Install

homebrew:

$ brew install sukechannnn/tap/giff

go install:

$ go install github.com/sukechannnn/giff@latest

build from source:

$ git clone https://github.com/sukechannnn/giff.git
$ cd giff
$ go build -o giff

Usage

$ giff            # view current changes
$ giff --watch    # watch mode: auto-refresh on file changes
$ giff -v         # show version
File List
Key Action
j / k Move cursor
H / L Collapse/expand directory
a Stage/unstage file
d Discard changes
Ctrl+A Stage all
Ctrl+K Commit
Ctrl+J Amend
s Split view
w Hide whitespace
/ Filter files
v Open in $EDITOR
c Open in VS Code
Ctrl+L Git log
t Open terminal (tmux split)
Enter Switch to diff view
q Quit
Diff View
Key Action
j / k Move cursor
gg / G Top / bottom
V Select lines
a Stage selected lines
A Stage/unstage file
/ Search
n / N Next / prev match
e Toggle fold
s Split view
w Hide whitespace
y Yank lines
Y Copy file path
Ctrl+L Copy path:line
Ctrl+E / Ctrl+Y Scroll
Esc Back to file list
q Quit

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
ui

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL