How to Create a repository and Push on Github with Git on Android Studio

Wanjiru Catherine
Sep 5, 2018 · 2 min read

Git and GitHub are very different from each other however similar they may sound. This article will take you through creating and pushing an android project repository to github using git. To get started you need android studio and a github account.

To create a repository, you need to have an account on Github. If you don’t yet have one, create one here.

You also need Android Studio installed in your computer. If you don’t yet have it, download it from here.

The next step will be to create a new project in android studio. Navigate to File -> Settings->Version control->Git. By default Git is installed with Android Studio. Click the test button to confirm that Git is working correctly.

Click the Test button to check that Git is working correctly.
You should see the popup confirming it’s successfully executed and also the Git Version.

After this, you should navigate to Github on the same window and enter the required details. Host should be github.com and the credentials of your github account , test then apply the changes.

Fill in your login email and password, test the connection to Github and apply the changes.

Navigate to VCS->Import into Version Control ->Share project on Github

Enter Repository name, Description and click Share button.

In the next window check all the files to add them for initial commit and click OK.

Now the project will be uploaded to github and you will get a notification message once it’s done.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade