How to unstash only certain files?

后端 未结 7 1011
醉梦人生
醉梦人生 2020-12-04 04:29

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

7条回答
  •  旧巷少年郎
    2020-12-04 05:12

    git checkout stash@{N}  
    

    Eg. To restore only ./test.c file and ./include folder from last stashed,

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

提交回复
热议问题