git-stager lets you easily add/remove files to/from the index. It shows the working tree status as per git status --short
. You can move around the entries toggling files in and out of the index with a single key.
git-stager supports these keys:
g
orH
- Move to the first entryM
- Move to the middle entryG
orL
- Move to the last entryj
- Move down one entryk
- Move up one entryo
- Open the current filed
- Toggle a diff of the current fileSPACE
orENTER
- Add an unstaged file or remove a staged fileq
orESCAPE
- Quit
git-stager requires Ruby.
Copy the git-stager
script to your path and make it executable (e.g. chmod 755 git-stager
).
git-stager is not installable as a Ruby gem.