There are methods to sync my local git repository over to my google drive via google drive sync windows application, but I was wondering whether I could bypass its need alto
You could use itDuzzit, they provide direct cloud-to-cloud syncing between Google Drive and GitHub. They have a fairly limited free tier and several paid ones. As long as your code is opensource and/or you don't mind a third-party handling it, this could be a viable solution.