If you grab git from Homebrew, it doesn't overwrite the Xcode one, so if you depend on that you're good. How hard could this possibly be for apt-get and the like?
I do believe that Linux-based desktop OSs should separate base system from user software, kind of like *BSDs have been doing; actually, I'd really distros to embrace something like homebrew, where packages are installed per-user