It's possible that I'm not really understanding how git works here, but I have a development git branch, and then I created a new branch called development_cached
I switched to the development_cached branch, freeze rails version for my project, then I ran two commands git add . and git commit respectively, and then switched back to the development branch to make some other changes to that branch.
When I ran ls vendor in development branch, its showing rails folder what I have added and committed to development_cached branch.
Can anybody please explain me why is it happening like this?