Skip to content

How can I split-off part of a repository, retaining all relevant branches and tags? #683

Answered by newren
BezemJ asked this question in Q&A
Discussion options

You must be logged in to vote

Before you run the filtering, do you actually have the other branches fetched or did you do a clone with the --single-branch option or something? By default, git-filter-repo rewrites all branches and tags (and any other refs you have), not just the current branch, but it only rewrites whatever exists in your local clone so if your local clone only has one branch then it will only rewrite one branch. What's the output of git show-refs | grep -e refs/heads/ -e refs/remotes/ both before you do the filtering and after?

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@BezemJ
Comment options

@newren
Comment options

Answer selected by BezemJ
@BezemJ
Comment options

@BezemJ
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants