I want to add the git repo https://github.com/yhirose/cpp-httplib.git tag v0.7.7 with all history as a folder cpphttp_lib to my another git repo called common.git. Any iea on how to do this ?, git-filter-repo can be used somehow to achieve this ?
            Asked
            
        
        
            Active
            
        
            Viewed 36 times
        
    0
            
            
        - 
                    2Does this answer your question? [Merge git repository in subdirectory](https://stackoverflow.com/questions/6426247/merge-git-repository-in-subdirectory) – mkrieger1 Jan 31 '21 at 22:25
- 
                    3[Git Submodules](https://git-scm.com/book/en/v2/Git-Tools-Submodules) – Mansoor Jan 31 '21 at 22:29
- 
                    2[`git subtree`](https://github.com/apenwarr/git-subtree/blob/master/git-subtree.txt) – phd Jan 31 '21 at 22:41
- 
                    3You should also consider using [a real dependency manager](https://github.com/LoopPerfect/buckaroo/wiki). Git is a poor substitute. – Schwern Jan 31 '21 at 22:52
1 Answers
0
            
            
        I chose to use git subtree command to solve issue mentioned in the question above. I like the git subtree concept and it works for my use case.
 
    
    
        a k
        
- 531
- 5
- 15