For my global gitignore, I would like to use multiple up-to-date gitignore templates from https://github.com/github/gitignore for my OS / IDEs / languages / frameworks like macOS, Java, Android, and JetBrains.
There are some solutions here to concatenate locally:
Can I include other .gitignore file in a .gitignore file? (like #include in c-like languages)
gitignore loads other gitignores
but I'm wondering if there are any more elegant solutions that simply concatenate the up-to-date templates from the specified urls.