Please don't use git stash as an "undo" function

Stashing has a specific purpose in version control - to shelve changes that you may want to restore later. The proper tools to use for reverting files back are restore/reset and checkout. Please don’t misuse stash.

3 Likes

Privacy & Terms