-
I unterstand that I can get the basic files with their history using Any suggestions? (Using GitBash on Windows, git version 2.47.0.windows.2, if that plays a role...) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Good, it should.
Really?? Do you have a repository that is shareable publicly which demonstrates this, or create an example? If this really does happen, since branches are merely pointers to the most recent commit in the branch, and since you you have "all relevant commits" as you stated above, you could just recreate the branches by pointing them to the relevant newly rewritten commit ( |
Beta Was this translation helpful? Give feedback.
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 ofgit show-refs | grep -e refs/heads/ -e refs/remotes/
both before you do the filtering and after?