Create new git repo from already existing repo's subdirectory

前端 未结 4 607
我在风中等你
我在风中等你 2021-01-02 03:38

I want to create a separate repo from an already existing repo\'s subfolder.

Detach (move) subdirectory into separate Git repository shows exactly that. BUT, I can\'

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-02 03:46

    git filter-branch saves all the original refs into their own namespace (under original/). It sounds like your git log --all is showing those refs too. You should instead inspect all the refs you care about, and if they look good, then you can throw away the original/ namespace.

提交回复
热议问题