Developer's Lab

By Diogo Pinto - DiØ

Creating and Saving Stash List With Git

When stash the changes in a dirty working directory away, we can can give a more descriptive message on the command line when we create one. By example:

git stash save "Saving anything"

The above order, will push and holds on stack, the contents with descriptive message.

git stash list

The command above, will show you, what is the branch name and what position that contents was saved on stack.

So, to pick up first contents from stack, type:

git stash pop stash@{0}

or second

git stash pop stash@{1}

and son on …

Comments