Skip to content

leohenon/interactive-git-status

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

interactive-git-status

Release Go 1.23+

igs is an interactive git status command.

It keeps the familiar status view, but lets you stage, unstage, diff, restore, hunk-stage, open files and commit with single-key shortcuts. It is not a full Git client; it is meant to make the raw Git workflow faster without replacing it.

Install

# Go
go install github.com/leohenon/interactive-git-status/cmd/igs@latest

# Brew
brew install leohenon/tap/igs

Usage

igs

igs

Keys

  • enter toggle stage
  • s / u stage / unstage
  • p / P stage hunks in selected file / all files
  • S / U stage / unstage all
  • a toggle current side
  • c commit
  • d / D diff selected / staged
  • x discard selected file
  • o open in $EDITOR
  • r refresh
  • j/k, / move
  • ctrl-d / ctrl-u half page
  • g / G top / bottom
  • tab next section
  • q, esc, ctrl-c exit

Flags

  • -s, --short compact view
  • --ignored show ignored files
  • --show-stash show stash
  • --watch auto-refresh
  • --version print version
  • -h, --help print help

Diff pager

To configure a custom pager use:

git config --global igs.diffPager 'delta --paging=never --width {width} | less -R'

License

MIT

About

Interactive git status for fast staging, diffing, and committing.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages