Back

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

I stashed my changes. Now I want to unstash only some files from the stash. How can I do this?

1 Answer

0 votes
by (27.5k points)

In order to unstash only some files from the stash

$ git checkout stash@{N} <File(s)/Folder(s) path> 

For example: In order to restore only ./test.c file and ./include folder from last performed stash

$ git checkout stash@{0} ./test.c ./include

Browse Categories

...