Back

Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in DevOps and Agile by (19.4k points)
I'd like to know if it is possible to extract a single file or diff of a file from a git stash without popping the stash changeset off.

Might anyone be able to provide some suggestions/ideas about this?

1 Answer

+1 vote
by (27.5k points)

In order to see the whole file: 

git show [email protected]{0}:<filename>

In order to see the diff: 

git diff [email protected]{0}^1 [email protected]{0} -- <filename>

Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers

500 comments

94.1k users

Browse Categories

...