[Git] Apply stashed changes and keep the stash entry

Created on November 30, 2026

Use git stash apply to restore changes without removing the stash entry. Suppose stash@{0} contains a change named change mode.

git stash apply --quiet 'stash@{0}'
cat config.txt
git stash list --format='%gd %s'
mode=prod
stash@{0} On main: change mode

--quiet suppresses the normal application messages. Omit the stash name to apply the latest entry. If you want a successful application to remove the entry too, use git stash pop.

Reference

Git