Numeric file selection shortcuts for common git commands
open sourceMITself-hostablefree
scmpuff makes working with Git from the command line quicker by putting numbers next to the files in git status (its gs), so git add 2 3, git checkout 1 or git reset 2-4 work on files by number; the paths are also in $e1, $e2 and so on for other commands, and it defines short aliases such as ga, gd and gco. It's a minimal reimplementation of SCM Breeze's core feature: most of it is a compiled Go binary, with under 100 lines of shell integration for bash, zsh and fish. Matthew Rothenberg created it.
Ways to install
Package managers
Problems it solves
- pick files from git status by number when running git add or git checkout
- numbered git status shortcuts that also work in the fish shell
- a fast single binary for numbered git file shortcuts instead of a big pile of shell scripts
- reset a range of changed files by number from the terminal
Features
- numbered git status (gs)
- numbers and ranges in git add, checkout, reset and other commands
- $e1, $e2... variables for other commands
- default aliases (ga, gd, gco), can be turned off
- bash, zsh and fish
- custom git binary through SCMPUFF_GIT_CMD
Capabilities
| Has a command line tool | plan not known |
|---|
Alternatives
The same job
These do what scmpuff does.
- SCM Breeze Adds numbered shortcuts to the output of git status, and much more
- forgit Utility tool for using git interactively, powered by fzf
