stash apply code example

Example 1: git stash apply specific stash

git stash apply "stash@{n}"
or
git stash apply n

Example 2: git stash pop index

git stash pop stash@{2}

Example 3: git stash contnet

git stash show -p stash@{1}

Example 4: how to get stashed on git

git stash pop or 
git stash apply

Example 5: git stash

$ git stash list
stash@{0}: WIP on master: 049d078 Create index file
stash@{1}: WIP on master: c264051 Revert "Add file_size"
stash@{2}: WIP on master: 21d80a5 Add number to log

Tags:

Html Example