You are viewing an historical archive of past issues. Please
              report new issues to the appropriate project issue tracker on
              GitHub.
            
            
            Comments
- 
                
                  Greg Hurrell
                  
                
                
From the
git-filter-branchmanpage:To rewrite the repository to look as if foodir/ had been its project root, and discard all other history: git filter-branch --subdirectory-filter foodir -- --all Thus you can, e.g., turn a library subdirectory into a repository of its own. Note the -- that separates filter-branch options from revision options, and the --all to rewrite all branches and tags. - 
                
                  Greg Hurrell
                  
                
                
Ok, done.
mkdir dialog cd dialog git clone ~/trabajo/unversioned/snippets src cd src git filter-branch --subdirectory-filter dialog -- --all # to definitively remove the "original" refs this is not enough rm -r .git/refs/original # had to actually delete the corresponding lines from here too: vim .git/packed-refs # then repack: git repack -a
 - 
                
                  Greg Hurrell
                  
                
                
Bumping this ticket. The code is sitting around in
~/work/lion/dialog; all I need to do is upload it. 
Add a comment
Comments are now closed for this issue.