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*

16
  • 3
    After battling with this across different branches and doing things like making temp branches and committing the problem file to those instead, I still found I had one branch left with a Unity asset file stuck behind. This method worked brilliantly. Commented Mar 15, 2019 at 22:38
  • 5
    I needed to do a merge with another branch, but could not get rid of those non-pointer files. Driving me crazy... So, I did a git lfs uninstall, git reset hard <commit>, git merge <branch>, git lfs install and git lfs pull. Finally :). Thanks. Commented May 6, 2019 at 12:13
  • 3
    Ops, my previous comment should have said git reset --hard... No way to edit in Stackoverflow after a while, sigh... Commented May 6, 2019 at 22:02
  • 3
    Worked for me BUT on windows, had to use PowerShell rather than git bash Commented Nov 28, 2020 at 17:28
  • 4
    This doesn't work for me. git reset --hard, the 2nd step on either path, fails with the same message as the questioner so I can't get past that step Commented Jan 29, 2021 at 8:32