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*

4
  • 32
    By "ignores" do you mean "overwrites"? Commented Nov 11, 2010 at 17:21
  • 8
    @Cascabel It means to revert all the local changes, uncommit all the local commits, delete all the local new files and directories, undelete all the locally deleted files and directories, etc. In short, just run a command as if rm -rf local_repo && git clone remote_url. Commented Mar 12, 2018 at 8:07
  • 1
    Does this answer your question? How do I force "git pull" to overwrite local files? Commented Dec 4, 2020 at 15:21
  • 3
    11 years later, and I'm still waiting for a simple, reliable way to do this. I loathe "git" so much... it wastes so much of my time. Commented Mar 23, 2022 at 8:41