3 ms·
Git subrepo can import a subdirectory. To oversimplify, it's a wrapper for git subtree that keeps metadata information in both your filesystem and your histor
by bryanlarsen 7y ago
Git subrepo can import a subdirectory. To oversimplify, it's a wrapper for git subtree that keeps metadata information in both your filesystem and your history so that things stay sane.
https://github.com/ingydotnet/git-subrepo https://github.com/ingydotnet/git-subrepo
- jimbo1qaz 7y agoDoes subrepo break when you rebase both a commit and its parent? I recall doing something like that in the past, and subrepo stopped working.
- bryanlarsen 7y agoVersion 0.4.0 of subrepo has been rock solid for us and has handled everything that's been thrown at it; prior versions wouldn't handle odd situations well. Whether our "odd situations" line up with yours is a different question... Edit: to be clear; even before 0.4.0 git subrepo handled strange situations better than git subtree did mostly because git subtree requires so much more manual work that's easy to get wrong.