简体   繁体   中英

Removing files from github commits within data quota limits

I was using a repo for some deep learning models I have been developing and somewhere along the way large files were uploaded to my repo.

I have been informed that I have exceeded my data quota on github using git lfs.

I want to prune these files from my github repo and bring my data storage within the data quota.

I have pruned my local repos and unhooked all of my lfs attributes but when I go to push I get a GH008 error. I cannot delete this reference LFS object.

I have not been able to find any answers online and am at my wits end. I would think that removing files so that you don't exceed the data quota would be a trivial and fundamental operation of a version control tool but yet there seems to be nothing available.

Anyone have a command for this task?

If you are the only person working on this git repo and git history is not so important for you, I propose the following actions to fully delete these large files from git history:

  1. Remove your git repo from github and recreate a new one with the same name

  2. Remove your.git folder from your project

  3. Initialize git on your project and add the newly created remote repo

  4. Add these large files in your .gitignore file

  5. Add your project files to git, commit and push

I hope it helps:)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM