git - On sourcetree, how can I recover stashes after checkout on a different branch? -
i had stashed changes while working on branch.
i wanted work locally on different branch did checkout new branch , lost stashes sourcetree sidebar.
here screenshot of sourcetree:
if type git stash list on terminal list of stashes...
stash@{0}: on feature/site-5-doctor-name-at-checkin-success: before commits stash@{1}: wip on feature/site-5-doctor-name-at-checkin-success: df48232 wip show dummydoctor on success page stash@{2}: wip on feature/site-5-doctor-name-at-checkin-success: 82b1aed linting stash@{3}: on feature/site-5-doctor-name-at-checkin-success: debug ...so know not lost.
how them sourcetree sidebar can use them in of branches?
welcome stack overflow :)
stashes indeed listed in sidebar, in image they're collapsed. 'show' links next tags, remotes, stashes, etc show on hover.
note trying apply stash 1 branch branch may result in conflicts resolve. in case, sourcetree not delete stash automatically, usually, rather you'll need right click , 'delete' stashes once you've applied them.

Comments
Post a Comment