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
Jamie ReardonTreehouse Project Reviewer
What about removing files out of a subdirectory?
So I understand about the git rm subcommand removing files, but what I encountered is that if I had folders inside of my git repo, if I remove any files inside of those folders, the whole folder is also removed? How do I keep the folders but only remove the files?
Jay McGavrenTreehouse Teacher
Git will not track an empty folder. If you have a folder that you want to keep, try creating and committing a file named
.gitkeep inside it.