Stashing only some of your files

If you want to keep some files and stash the others, use “git add” to add the files you want to keep, and type

git stash --keep-index
Written on March 11, 2016 by hasithapathiraja