Skip to content

How to add an Android Studio project to GitHub

  • by

If you want to add Android Studio (Android application) project to a GitHub repository using android studio. How can I do that? Here is simple steps :

  1. Sign up and create a GitHub account in www.github.com.
  2. Download git from https://git-scm.com/downloads and install it in your system.
  3. Open the project in android studio and go to File -> Settings -> Version Control -> Git and for Mac go to Android Studio ->Preferences ->Version Control -> Git.Android studio mac githubAndroid studio git setup
  4. Click on test button to test “path to Git executables”. If successful message is shown everything is ok, else navigate to git.exe from where you installed git and test again.Android studio git success
  5. Go to Window system  File -> Settings -> Version Control -> GitHub and for Mac systems go to Android Studio ->Preferences ->Version Control -> GitHub.
  6. Enter your email and password used to create GitHub account and click on Test and then OK button. GitHub android studio setup
  7. Then go to VCS -> Import into Version Control -> Share Project on GitHub. Enter Repository name, Description and click Share button.share project to github android stuido
  8. In the next window check all files inorder to add files for initial commit and click OK.initial commit android studiocommit github android studio
  9. Now the project will be uploaded to the GitHub repository and when uploading is finished we will get a message in android studio showing “Successfully shared project on GitHub”. Click on the link provided in that message to go to GitHub repository.successfully shared project on Github

That’s it ! for more help on please comment out.

Leave a Reply

Your email address will not be published. Required fields are marked *