git filter branch - How to detach subdirectory in Git but keep all branches -
i have been following answers question detach subdirectory separate git repository , had successes simple subdirectories on 1 branch confronted subdirectory littered on multiple branches simple
git filter-branch --subdirectory-filter subdirectory head
does not job.
do have switch each , every branch , run filter-branch command or there can blanked change through complete history ?
the head
@ end of command specifying ref process. can give number of other commands, including --all
specify absolutely everything, --branches
specify branches, or --remotes
specify remotes. may have prefix these options --
tell filter-branch these rev-list args. note --all
try process tags explicitly, may not want. use --branches --remotes
specify non-tag refs instead. may want add --tag-name-filter cat
rewrite tags point rewritten commits - original command leave tags unchanged.
Comments
Post a Comment