GIT checkout except one folder

I want to checkout to other branch, or previous commit, but I want to keep one folder the same files (not checkout the folder). I want that the folder, will be shown in git status, so I can add this