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.

3
  • regretfully submodule update --init does not seem to revert local modifications in my case anyway :| Commented Sep 21, 2016 at 20:23
  • This was the right answer for me, since I had just done a git pull inside my submodule. Using update I was able to go back to the commit referenced by my main module Commented Jan 10, 2022 at 13:41
  • I should be able to upvote this answer every time I have to look it up, because I obviously can't remember it. Commented Feb 22, 2023 at 22:02