To create a stash with a specific name, use:
git stash push -m "your-stash-name"
To view a list of all your stashes, including their names:
git stash list
To apply and remove a specific stash by its name, first, find the stash index using git stash list.
Once you have the index (e.g., stash@{2}
), you can pop it: