Ramatou Adamou Issa

Ramatou Adamou Issa

  • Experiences
  • Formation
  • Musics
  • Blog

›Recent Posts

Recent Posts

  • Watchtower, container for updating docker images
  • PHP8 (Migrating existing PHP7 project to PHP8)
  • What news in Symfony 5
  • Command Query Segregation Responsibility (CQRS)
  • AFUP conference feedbacks

How To Use Git stash command in a very advanced way

May 24, 2019

Ramatou Adamou Issa

Git Stash

For very long time, I'm using only two commands of git stash.

git stash
git stash pop 

Fortunately, git stash has some useful commands also.

You can stash with a saving message with the command

git stash save "your message"

List all your stashes

git stash list

Apply the stash to a select repository

git stash apply stash@{n}

Pop specific stash from the stack

git stash pop stash@{n}

Show the summary of the latest or specific stash

git stash show
get stash show stash@{n}

Delete a specific stash

git stash drop stash@{n} 

You can also stash untracked files

git stash save -u

Or clear stash

git stash clear
Tweet
Recent Posts
  • Git Stash
Ramatou Adamou Issa
Ramatou Adamou Issa
HomeExperiencesFormation
Social Networks
InstagramTwitterChat
Accounts
Gallery photoBlogGitHubStar
Copyright © 2025 Ramazaki