Aayush Goyal
Aug 24, 2017 · 1 min read

Please update your article:

Now there is an option to directly create a repository on GitHub from Android Studio.

For creating a repository directly from Android Studio do the following:

  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.
  4. Click on the test button to test “path to Git executables”. If a successful message is shown everything is ok, else navigate to git.exe from where you installed Git and test again.
  5. Go to File -> Settings -> Version Control -> GitHub. Enter your email and password used to create GitHub account and click on OK button.
  6. Then go to VCS -> Import into Version Control -> Share Project on GitHub. Enter the repository name, description and click the Share button.
  7. In the next window, check all files in order to add files for initial commit and click OK.
  8. 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.

Source: https://stackoverflow.com/questions/37093723/how-to-add-an-android-studio-project-to-github

)

    Aayush Goyal

    Written by