How to Post a Project to GitHub from Android Studio

Posting a project to GitHub as a repository is quite easy in Android Studio.

Requirements:

Connect GitHub to Android Studio:

  • Go to File -> Settings -> Version Control -> Git, while a project is being opened
  • Click the Test button on the same line as Path to Git executable a field to see whether Git is working. This field is auto-filled if you installed Git from the link above.
  • Go to File -> Settings -> Version Control -> GitHub and choose Add account then fill in your GitHub username and password.

Share project to GitHub

  • While opening a project, access VCS -> Import into Version Control -> Share Project on GitHub.
  • Input the required information on the popup then Share.

More details:

  1. Create a GitHub account if you don’t have one. You can do this by visiting github.com and signing up.
  2. Open your Android Studio project that you want to post on GitHub.
  3. Go to “VCS” on the top menu bar and select “Import into Version Control”, then click on “Share Project on GitHub”.
  4. A new window will appear asking for your GitHub login credentials. Enter your GitHub username and password.
  5. Next, you’ll need to fill out some basic information about your project. Enter a name for your repository and a description. You can also choose whether to make it public or private.
  6. Click the “Share” button to create the repository on GitHub.
  7. After the repository has been created, you’ll need to commit and push your changes to GitHub. To do this, go to “VCS” select “Git” and then “Commit”. Make sure to select all the files that you want to commit.
  8. After committing, go to “VCS” again and select “Git” and then “Push”. This will push your changes to the GitHub repository.
  9. You can now go to your GitHub account and see your project repository. Congratulations, you’ve successfully posted your project to GitHub!

Leave a Comment

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


Scroll to Top

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close