#!/usr/bin/env bash for STASH in $(git stash list --format="%gd"); do echo "=== $STASH ===" git stash show --name-only "$STASH" echo done