•  


Removing files from Git Large File Storage - GitHub Docs
Skip to main content

Removing files from Git Large File Storage

If you've set up Git LFS for your repository, you can remove all files or a subset of files from Git LFS.

Removing a single file

  1. Remove the file from the repository's Git history using either the filter-repo command or BFG Repo-Cleaner. For detailed information on using these, see " Removing sensitive data from a repository ."

  2. Navigate to your .gitattributes file.

    Note: Your .gitattributes file is generally saved within your local repository. In some cases, you may have created a global .gitattributes file that contains all of your Git LFS associations.

  3. Find and remove the associated Git LFS tracking rule within the .gitattributes file.

  4. Save and exit the .gitattributes file.

Removing all files within a Git LFS repository

  1. Remove the files from the repository's Git history using either the filter-repo command or BFG Repo-Cleaner. For detailed information on using these, see " Removing sensitive data from a repository ."

  2. Optionally, to uninstall Git LFS in the repository, run:

    git lfs uninstall
    

    For Git LFS versions below 1.1.0, run:

    git lfs uninit
    

Git LFS objects in your repository

After you remove files from Git LFS, the Git LFS objects still exist on the remote storage and will continue to count toward your Git LFS storage quota.

To remove Git LFS objects from a repository, delete and recreate the repository. When you delete a repository, any associated issues, stars, and forks are also deleted. For more information, see " Deleting a repository ." If you need to purge a removed object and you are unable to delete the repository, please contact support for help.

Note: If you removed a single file and have other Git LFS objects that you'd like to keep in your repository, after deleting and recreating your repository, reconfigure your Git LFS-associated files. For more information, see " Removing a single file " and " Configuring Git Large File Storage ."

Further reading

- "漢字路" 한글한자자동변환 서비스는 교육부 고전문헌국역지원사업의 지원으로 구축되었습니다.
- "漢字路" 한글한자자동변환 서비스는 전통문화연구회 "울산대학교한국어처리연구실 옥철영(IT융합전공)교수팀"에서 개발한 한글한자자동변환기를 바탕하여 지속적으로 공동 연구 개발하고 있는 서비스입니다.
- 현재 고유명사(인명, 지명등)을 비롯한 여러 변환오류가 있으며 이를 해결하고자 많은 연구 개발을 진행하고자 하고 있습니다. 이를 인지하시고 다른 곳에서 인용시 한자 변환 결과를 한번 더 검토하시고 사용해 주시기 바랍니다.
- 변환오류 및 건의,문의사항은 juntong@juntong.or.kr로 메일로 보내주시면 감사하겠습니다. .
Copyright ⓒ 2020 By '전통문화연구회(傳統文化硏究會)' All Rights reserved.
 한국   대만   중국   일본