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 trialAakash Srivastav
Full Stack JavaScript Techdegree Student 11,638 PointsWorking with git repositories
As he used this command
rm -r myProject/.git
to remove the git repo. Can someone explain , what is "-r" in this command?
And second question is , why doesn't this command work
git rm -r myProject/.git
1 Answer
gsav
3,800 Points-r is for recursive. So it will remove the entire file structure. Not sure I can help you out with the second question without seeing an error message.
More information on RM here https://git-scm.com/docs/git-rm
Aakash Srivastav
Full Stack JavaScript Techdegree Student 11,638 PointsAakash Srivastav
Full Stack JavaScript Techdegree Student 11,638 Pointsah ..thanks @gsav . I got the answer to my same question . Actually , using
git rm -r myProject/.git
will confuse the bash command with git commands.