Assume this a structure of top most commit
--src
--app
--node_modules
--code
In older commit the code does not live inside app rather it lives inside work and there is no app folder. so when I checkout to that commit this will be my structure
--src
--app
--node_modules
--work
--code
Since node_modules is a .gitignore directory. It wont be removed. As you can see when you have lot of directory like this there will be huge screen space taken by directory which we dont need.
My doubt is that is there any way I can remove those directory and add then add those when I want, in this case it will be when I am in topmost commit. Just like how git stash works?
Thanks for the help!