extract multiple directories using git-filter-branch

后端 未结 4 1666
隐瞒了意图╮
隐瞒了意图╮ 2020-12-02 07:55

I have a big repository which currently contains multiple projects in top level subfolders, say /a, /b, /c, and /d.

4条回答
  •  悲&欢浪女
    2020-12-02 08:41

    I prefer this

    git filter-branch -f --prune-empty --tree-filter "ls -I a -I b | xargs rm -rf"  -- --all
    

提交回复
热议问题