我正在学习
参考链接:https://htmlpreview.github.io/?https://github.com/newren/git-filter-repo/blob/docs/html/git-filter-repo.html
git filter-repo
的用法,因为我想用它做一个小实验。我有一个仓库,我只想获取其中一个目录的历史记录,例如从 master 分支开始,但我不想在 master 上工作。我想创建一个新分支,比如 filter-repo-test
,并让 git filter-repo
对该分支进行操作。我看了一下手册,但没有找到指定特定分支的选项。这可行吗?参考链接:https://htmlpreview.github.io/?https://github.com/newren/git-filter-repo/blob/docs/html/git-filter-repo.html
--partial
的注意事项:--refs filter-repo-test
。 - Ryan Wheale