Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
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 [email protected]{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 [email protected]{0} ./test.c ./include

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

28.4k questions

29.7k answers


94.1k users

Browse Categories