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! While you're at it, check out some resources Treehouse students have shared here.
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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![sdfngsdlfkjnsdf](https://secure.gravatar.com/avatar/1e104e26e2bd94a8664222613e35dcaf?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
sdfngsdlfkjnsdf
8,389 Pointsremoving directories in git
hey folks, having trouble removing directories that have files in them. in the command line i'll do: rm -r tested_repo then i'll get a message like this: override r--r--r-- Username/staff for tested_repo/.git/objects/66/2d0e94c13a4fb635dffbc09dc9238f7f1d2bd7? not sure how to override that message to rm the directory i want.
also when trying to commit: git init "directory" nano "add a file" inside nano- 'made changes etc.' saved git add 'file' git commit 'file' when i try to make changes it seems as though i'm unable to save these changes- anyone know why that is? seems i can't hit control+x to save the changes and push....
thoughts?
1 Answer
![Jeremy Germenis](https://uploads.teamtreehouse.com/production/profile-photos/17095/micro_10195_10202366009765917_507993599_n.jpg)
Jeremy Germenis
29,854 Pointslogged in as sudo?
Dave McFarland
Treehouse TeacherDave McFarland
Treehouse TeacherYou can override the message when deleting the directory like Jeremy suggested:
sudo rm -r tested_repo
But the message you're getting indicates you're deleting the actual git repo (the .git directory) -- is that what you want to do?