# Git LFS fail for Spaces with Github Workflow

**URL:** <https://discuss.huggingface.co/t/git-lfs-fail-for-spaces-with-github-workflow/16642>\
**Category:** Spaces\
**Created:** [April 9, 2022, 12:13pm UTC](https://discuss.huggingface.co/t/git-lfs-fail-for-spaces-with-github-workflow/16642 "2022-04-09T12:13:30Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Clatonh](https://avatars.discourse-cdn.com/v4/letter/c/2bfe46/32.png) [@Clatonh](https://discuss.huggingface.co/u/Clatonh)\
**Post date:** [October 19, 2022, 11:12pm UTC](https://discuss.huggingface.co/t/git-lfs-fail-for-spaces-with-github-workflow/16642/7 "2022-10-19T23:12:51Z")

</div>

Nevermind, found an answer to remove git history of all large file by running the following git command

> git filter-branch --index-filter --f "git rm -rf --cached --ignore-unmatch “PATH TO FILE” HEAD  
> git push origin --force --all

---

_[View the full topic](https://discuss.huggingface.co/t/git-lfs-fail-for-spaces-with-github-workflow/16642)._
