gia
is a tool for interactive hunk staging.
go get github.com/isacikgoz/gia
usage: gia [<file>] [<args>]
Flags:
-h, --help Show help.
-v, --version Show application version.
Args:
--
Default mode, used on unstaged files.
--no-index
Used on untracked files.
--cached
Used on staged files.
- ↓, j: Cursor down
- ↑, k: Cursor up
- n: Next hunk
- N: Previous hunk
- g: Go to top
- G: Go to bottom
- space: Stage/Unstage
- q: Quit
- c: Open controls
See main.go
for usage. Also, feel free to open PR's.