Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

1
  • Did not work, neither for git 2.17.1 nor git 2.20.1. However using git rm instead of git add worked for both. Notes: -f is not needed if things are clean. Be sure to never use options with git if you want to protect against unintended data loss. Also note that this leaves .git/modules/{module_name} in place. It is best practice to keep it there because git prints the correct(!) help how to proceed if something is blocked due to this. Commented Nov 25, 2019 at 10:37