Git: Stash specific files
17 January 2023 (Updated 21 July 2025)
Push files to the stash:
git stash -- <files>
View your latest stash:
# Show just the file names
git stash show
# Show changes in files
git stash show -p
Tagged:
Git
Thanks for your comment 🙏. Once it's approved, it will appear here.
Leave a comment