I have created one branch 'feature' from default master branch, So Whatever files present on master it comes to my 'feature' branch. I switched to 'feature' branch and added 2 more files into this branch and committed this change. So When I switch to master I have 2 files and when I switch to 'feature' branch I have 4 files 2 old + 2 newly added. I can able to see the files in my working directory.
So, How Git manages the switching the branch and only showing the files present on particular branch. Does it creates a folder? anywhere?
I want to know how git manages the branches internally.