How to submit (update) an Android studio project to GitHub

Source: Internet
Author: User
Tags version control system

Objective

Before writing this article I assume that you have installed Android studio and already have a project built with Android Studio.
So since this blog post is being submitted to GitHub, naturally we need to understand two concepts: git and GitHub.
Git is a version control system, with the SVN, CVS peer concept
GitHub is a Web site that provides users with a git service. This way you don't have to deploy a git system to register your account directly, so you can use the GIT service they provide.

Get ready
    1. A git version control system needs to be installed on your PC. such as the Git GUI;
    2. Register an account on the GitHub website.
Steps
    1. Associating Android Studio with Git
      In setting--> Version control--> git-->path to git executable, select the Git.exe path in the bin directory of your installed Git GUI.
    2. Associating Android Studio with GitHub
      Enter your account name and password on the GitHub website in setting--> Version control--> GitHub
    3. OK after the two environment configuration OK then let's start uploading the project. Start by building a project in Android studio. Steps to upload the project to GitHub

      Wait patiently for your project to appear on the GitHub website.
    4. Update the project.
      OK now our new project code has changed, add a test class, want to commit the changed code on GitHub
      First, we'll add the code to the local library:
      Right-click the project (or right-click on the file you want to add, if you right-click the file, such as out of the menu is not a commit Directory, but the commit file, but the operation is the same) operation:

      Click Commit, click Commit in the Popup box

      The test class is then added to the local library;
      And then we're uploading the test class to GitHub.

      OK, Upload success!
Add

After I configured GitHub I found that the original SVN was useless. After testing, it turns out that the Setting-->version control right drop-down menu selects the repository you want to submit:

How to submit (update) an Android studio project to GitHub

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.