Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want remove some folders from my repository and I can do it as usual with

git rm -r junk-folder

But how I can do this from emacs with magit package?

share|improve this question
up vote 11 down vote accepted

Magit doesn't support git rm. Instead, delete the folder in dired, and then stage the change.

share|improve this answer
Thanks for this. Much clear now. – proofit404 Dec 8 '12 at 15:05

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.