4

It was very easy in Sourcetree but this tool is not available on Linux

8

gitk shows the content of your stash:

$ gitk --all&

Since both the index and the working tree are saved in stash, you see both, and the diff looks a bit different than what you might be used to.


$ git stash show -p

shows the stash content on the command line. If you have several stashes, you can specify the stash name, e.g. stash@{3}.

  • menu view->everything shows the stashes also. – Alan Jay Weiner Jun 10 '15 at 16:47
  • 1
    This is not working: on my repository, this shows only the last entry, and in the middle of thousands of other non-stash entries, so this would take me hour to find out it out if I do not know in advance the exact name of the commit. It is not even possible to filter the entries with "stash" keyword – calandoa Mar 9 '16 at 16:52
  • @calandoa: I assumed the stash was recent and in the vicinity of the checked out commit. See if my edit better fits your need. – Gauthier Mar 10 '16 at 7:56
  • 1
    @calandoa: You can find the latest stash easily using "File" > "List references" > Click "stash". – 203967 Dec 12 '16 at 21:52
  • 2
    @calandoa: The possibility of showing all the stashes instead of just the last [stash] entry is being studied link, backup link; if you really thrive at it you can even apply a patch yourself using this gist. Apologies the state is kind of early alpha, but it mostly would work OK. – 203967 Dec 12 '16 at 21:54
2

I tried several GUIs without success, though I may have missed some options:

  • gitk (check my comment in the other answer)
  • git gui
  • giggle
  • gitkraken

The ones which worked fine:

  • gitg (show the stash by default at the top of other commits)
  • tig with "tig stash" (text UI but very handy)

Not the answer you're looking for? Browse other questions tagged or ask your own question.