-3

I need to remove 2 folders in BitBucket:

I used command: git rm folder1 folder2

And got error:

Fatal: not removing "folder1" recursively without -r

2
  • 2
    As the error says, try git rm -r folder1 folder2. Commented Nov 15, 2019 at 10:05
  • 2
    Did you read and understand the relevant parts of git-scm.com/docs/git-rm? Commented Nov 15, 2019 at 10:09

1 Answer 1

0

Change git rm folder1 folder2 to git rm -r folder1 folder2 to remove a directory.

git rm --help

-r

Allow recursive removal when a leading directory name is given.
Sign up to request clarification or add additional context in comments.

1 Comment

yes it work, thank you ;)

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.