Skip to main content

stash ↔ to save Diff w/o Commit, to array list

git stash

to save Diff to stash & remove Diff from view

git stash pop

to load most recent stash

git stash save _name

to save stash under _name

git stash list

to print list of stash (with index + name)

git stash apply 1

to load stash saved at index 1

stash persists across Branches , VERY useful to transport diff to other branch to commit & avoid usual complaints

References

  1. git stash save _name ↔ to save stash under _name

  2. git stash ↔ to save Diff to stash & remove Diff from view

  3. git stash pop ↔ to load most recent stash

  4. git stash list ↔ to print list of stash (with index + name)

  5. git stash apply 1 ↔ to load stash saved at index 1