Due to the sheer size and history of AOSP's frameworks_base repository, pushing it to GitHub isn't exactly straightforward. In this guide, I'll walk you through the entire process of pushing the contents of frameworks_base to a GitHub repository.
Let's start with cloning an older version of Android's frameworks_base.
Here, I have cloned:
https://github.com/aosp-mirror/platform_frameworks_base -b nougat-release