Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
Willemijn B5,577 Points
Where to see the working directory files
In this video Jay shows how one file seems to 'disappear' when checking out to the master branch. Where would I find this overview of files in the folder when I'm using Git in my Terminal (on Mac)? Would this be visible in a code editor like Atom the same way it is in Workspaces, or should I find it somewhere else?
Jason AndersTreehouse Moderator 145,855 Points
Hi Willemijn B
The 'working directory' you're seeing in the video isn't actually a file directory of a folder. It is the side bar of his Text Editor that is showing the file tree of the project being worked on.
If you were to just show your folder contents on the desktop or run the list in the terminal as Jamie said, you will see all the files for the project regardless of which branch you are on. The files will only disappear and re-appear in the file tree within the Editor you are using to code (e.g Atom, VS Code, Sublime, etc).
I hope this clears it up some.
Jamie ReardonTreehouse Project Reviewer
You can run the command -ls to show the contents of a directory. Hidden files will be ignored however, you may pass the command option -a or --all to include hidden files, they begin with a ".".