Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in DevOps and Agile by (19.4k points)

I see here that you can apply or unapply a stash and even create a new branch off of a stash. Is it possible to simply see what is inside the stash without actually applying it?

1 Answer

0 votes
by (27.5k points)

In order to list the stashed modifications use this: 

git stash list

In order to show files changed in the last stash use the this:

git stash show

In order to view the content of the most recent stash, run the following command

git stash show -p

In order to view the content of an arbitrary stash, run the following command

git stash show -p stash@{1}

Related questions

0 votes
1 answer
0 votes
1 answer
+6 votes
2 answers
0 votes
1 answer
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...