DEV Community

Discussion on: How to stash a specific file or multiple files?

Collapse
 
ejrojasb profile image
EmilioJRB

I suggest git stash save "a comment here". I always use it, it is the best way or working with stashes, the indexes may get you lost

Collapse
 
iamsteveworsley profile image
Steve Worsley

Just to help people coming from google the save command has been deprecated:

This option is deprecated in favour of git stash push. It differs from "stash push" in that it cannot take pathspecs, and any non-option arguments form the message.