What environment is this tutorial taking place?
I'm curious as to how the author of this git tutorial: https://www.digitalocean.com/community/tutorials/how-to-use-git-branches
is able to have git hide/reveal files in the local system using branching. In my mac when I try to do this, it is still visible in the file system. no matter what branch I'm currently on. At first I thought this was only possible in the remote server of git, but realized they had to push the changes. How can I accomplish this in my mac?