# Git LFS fail for Spaces with Github Workflow

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fgit-lfs-fail-for-spaces-with-github-workflow%2F16642%3E%5C
**Category:** Spaces\
**Created:** [April 9, 2022, 12:13pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fgit-lfs-fail-for-spaces-with-github-workflow%2F16642 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FClatonh)%5C
**Post date:** [October 19, 2022, 11:12pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fgit-lfs-fail-for-spaces-with-github-workflow%2F16642%2F7 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fgit-lfs-fail-for-spaces-with-github-workflow%2F16642)._
