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

Development Tools Git Basics Getting Started With Git Working With Git Repositories

julian gallegos
PLUS
julian gallegos
Courses Plus Student 1,361 Points

Oops! I just decided we're in the wrong folder. Let's remove the git repository we just created.

For some reason I can't seem to figure out what the second answer is to this quiz. I have re-watched the video and still cannot seem to figure out what the right answer is.

I have thought the answer should be rm -r but that doesn't seem to work.

Thanks!

11 Answers

I find the attached Treehouse video regarding this question extremely unhelpful, I would even go to the extent of saying, not educational. The answer to that question is "rm -r .git And it is on the screen for approx 5 seconds, with just "this is what you do to delete a folder", nothing about what rm is or why -r is used etc... and we're challenged to remember that? Result? = frustration! Please Treehouse do not call yourselves instructors, because you're not, this is showing and demonstrating not instructing. People in programming have forgotten how difficult it can be for newbies to grasp the simplest concept. Please extend, dissect, slow down, explain, chew it down for us. thank you

Boris, at the beginning of this course they emphasized that if you're not familiar with the console, then you should watch the videos on that! So instead of following their advice, you end up frustrated because you don't know what is taught in an earlier lesson. That is your fault; not theirs. This is as ridiculous as criticizing an instructor of calculus for not covering basic algebra.

While I find the tone of this post distasteful and disagree with some of its statements, I find myself concurring with its ultimate statement. I for one would appreciate it if in the future if 1)the instructors would slow down a bit, and 2)there could be some minimal reviewing of of how material in previous lessons is applied in the current lesson. Always remembering that you have students at many different knowledge levels and be willing to cater to all of those students is crucial and will make your site better. This is not to say you never do this, but there is definitely room for improvement.

Iago Wandalsen Prates
Iago Wandalsen Prates
21,699 Points

It wants you to only delete the git repository, not everything on the folder. try rm -r .git

I am typing that command, but it is still not letting me pass the task. =(

julian gallegos
PLUS
julian gallegos
Courses Plus Student 1,361 Points

thanks that worked! i wasn't putting the ".git" at the end of it.

taking online course, why cant i using rm .git what is -r mean?

https://twitter.com/vanvlymenpaws/status/488887083616858112

Ismael Uriarte
Ismael Uriarte
10,403 Points

I think the -r stands for repository

Iago Wandalsen Prates
Iago Wandalsen Prates
21,699 Points

-r means recursively. That means the action will apply to the folder, and any file inside the folder, including files inside other folders on that folder.

Ismael Uriarte
Ismael Uriarte
10,403 Points

Thanks Iago. Good explanation.

rm-r .git

boris you the man

Stephen Garner
PLUS
Stephen Garner
Courses Plus Student 11,241 Points

i totally knew how to do this but didn't read the question carefully. thought it was asking me to MOVE the git project folder...and i was like "whaaaa". and then i re-read it and it all made sense.