This was the video that I watched on how to add, commit, and push code to Github.
https://www.youtube.com/watch?v=-dAr6VnmomM
This tutorial should help you set up your android studio with github. https://medium.com/code-yoga/how-to-link-android-studio-with-github-312037a13b99
I've found this step by step tutorial to be helpful: https://mobikul.com/android-studio-github-integration/