I'm wondering if github and gitlab implemented their own version of git under the hood, or if they just use the vanilla git everyone else uses on their server.
AFAIK github implemented Libgit2 (or are at least a major contributor), which is an independent implementation. Am on mobile, so sorry for lack of sources.