Sometimes you only want to temporarily hide one file, not your whole workspace. Use git stash push.
git stash push -m "temporary fix" path/to/file.js
This keeps your other experimental changes active while you fix a bug in a specific file. Total workflow control.
