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?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.