Remove refs/original/heads/master from git repo after filter-branch --tree-filter?

前端 未结 3 1606
孤街浪徒
孤街浪徒 2020-11-27 09:11

I had the same question as asked here: New git repository in root directory to subsume an exist repository in a sub-directory

I followed this answer here: New git re

3条回答
  •  情深已故
    2020-11-27 09:59

    filter-branch keeps backups so repository need to clean up reflogs and garbage collect. Make sure that have no need in this backups before deletion:

    rm -Rf .git/refs/original
    git gc --aggressive --prune=now
    

提交回复
热议问题