Remove a directory permanently from git

后端 未结 6 1045
广开言路
广开言路 2020-11-30 20:44

In my personal git repo, I have a directory that contains thousands of small images that are no longer needed. Is there a way to delete them from the entire git history? I h

6条回答
  •  广开言路
    2020-11-30 21:26

    git-filter-branch by default saves old refs in refs/original/* namespace.

    You need to delete them, and then do git gc --prune=now

提交回复
热议问题