When I switch branch with non-committed changes I'm given a prompt to stash my changes:
When I switch back to the branch with the stashed changes I can't see any of the non-committed changes.
Using EGit how can I retrieve the stashed changes?
To retrieve changes out of the stash and apply them to the current branch you're on, you have two options: git stash apply STASH-NAME applies the changes and leaves a copy in the stash. git stash pop STASH-NAME applies the changes and removes the files from the stash.
Open Git Perspective -> Git Repositories View -> Expand your repository -> Stashed Commits -> select your stash -> right click and Apply Stashed Changes.
Stage all your files that you need to stash. Run git stash --keep-index . This command will create a stash with ALL of your changes (staged and unstaged), but will leave the staged changes in your working directory (still in state staged). Now your "good stash" has ONLY staged files.
In EGit 3.5 and later, there is a menu called Stashes in the Team context menu. It provides an action to stash changes and also lists any existing stashes. The same menu is also available as a toolbar icon and in the Git Repositories view:
Selecting an existing stash from the menu opens it in a viewer. The changes can be inspected and there are actions for applying the stash or deleting it:
In Eclipse (Luna) + eGIT, you can restore stash as
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With