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.

Required fields*

3
  • That's what really works, even when you already have local commits that you want to remove. Commented May 11, 2018 at 17:09
  • 11
    Warning guys!! git clean -fxd removes files from .gitignore also. Commented Dec 5, 2018 at 5:44
  • @RameshNavi Sure. This is exactly what is wanted. What is wanted is to have a faster way to re-clone it, i.e. to delete the entire local repo and then clone it. Commented Nov 18, 2019 at 13:30