logoalt Hacker News

PaulDavisThe1styesterday at 8:51 PM1 replyview on HN

git is so agnostic about all this stuff that you can even merge completely disparate, unrelated repositories (for example, my own primary "job" repository, and the linux kernel) into the same on-disk structure. Of course, doing so is useless because none of the commits from one repo has any relevance to the other. But because the commits are identified by true GUIDs, there are no collisions, and both sets of commits can happily exist in a single repo.

It's of almost zero utility, but it does (for me) heighten the beauty and elegance of the concepts behind git (and even, the actual implementation).


Replies

mietekyesterday at 10:14 PM

I found the ability to merge unrelated repositories very useful when collecting various bits of work I did separately and combining it into a single library.