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.

5
  • I tryed to add this command in my generic Makefile yet I'm still stucked to make GNU Make ignore the interpretation of the $(...) sequence, despite it's presence within simple quotes. Anybody have an idea? Commented Mar 19, 2014 at 13:57
  • Your command is what I needed thank you! But I get: Entering 'Core' fatal: ambiguous argument 'origin/HEAD': unknown revision or path not in the working tree. where Core is the submodule
    – Sanandrea
    Commented May 3, 2017 at 13:01
  • Also, I guess you need to figure out this comment stackoverflow.com/a/18008139/3383543 Commented Jul 4, 2017 at 19:32
  • not having the recursive option means this only works if your submodules don't include submodules again.
    – erikbstack
    Commented Nov 12, 2017 at 8:20
  • This answer needs a warning for newbies: reset --hard and clean -dfx.
    – PLG
    Commented Dec 29, 2022 at 21:53