There are no straightforward ways to do it. The command-line solution in the Stackoverflow link in Seth's answer is useful, but I user my own trick in Sourcetree.
To stash select files:
You can then re-apply the first stash, and discard the files that you wanted to stash.
I'm on a Mac. By the way:
- cmd + click: selects deselects a single file for further action
- shift + click: extends selection to that file for further action
- ctrl + click: opens contextual menu (same as right click)
- alt + click: does nothing more than normal left click
So on a Mac none of the previous serves the purpose.
I was asking the shell Git command because I'm not sure if it's even possible to do what I want to (= stash single files).
Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG