A zsh plugin that simplifies using the stash function.
You determine which stash you want by entering a plain integer.
For example, instead of:
$ git stash pop stash@{2}
you type
$ stashy pop 2
This plugin includes the standard stash commands, which all take an integer as an argument. If no integer is given, it will assume 0- the most recent stash.
show
- shows only the stashapply
- applies the stashdrop
- drops the stashpop
- applies and drops the stash
In addition, a few standard commands are included that don't take an argument.
clear
- will drop all stasheslist
- will show all stashes one after the other
Last, a few shortcuts are included:
stashy staged
- stashes only staged filesstashy unstaged
- shortcut forgit stash --keep-index
which will stash unstaged, but not untracked filesstashy all
- shortcut forgit stash --include-untracked
which will stash everything, including untracked files