Git Stash List
Post by
on September 18, 2012There is no easy way to list all the stashes you have and what changes they will make in git. So, I have created a simple script to do this for me:
Take this script and put it in your git-core folder. You can find this by doing the following:
$ find / -name "git-core"
I'm on OS X 10.6 and found it in /opt/local/libexec/git-core and I believe I'm using the MacPorts version. Then, be sure to chown and chmod the file the same as the other "git-*" commands in that directory. For me, I did:
$ git chown root:admin git-stashlist $ git chmod 755 git-stashlist
Thanks to Tim Cunningham for his post on how to "Create your own custom git command!" and a post on SuperUser to get color working properly.
UPDATE: I have added a set of tools, including this one, to the "Git Extras" GitHub repository.