How to Use git and androidstudiogit in android studio

Source: Internet
Author: User
Tags how to use git

How to Use git and androidstudiogit in android studio

Android studio provides a git plug-in for us to implement version control. This blog shows how to use it (the operating system is win7 ).

1. prepare and download git on the window. In studio, set the git plug-in: File-> Setting-> Version Control-> Git, and click Test to Test it. For example: then you have set it successfully.

2. initialize the git Project (git init) as follows: VCS-> Enable Control Integration-> Select "Git ".

3. Add remote for git. In this step, maxcompute studio does not provide us with a visual GUI. You must use the Git tool. Find and open git Bash under the Git installation directory, switch the directory to the project directory, and enter git to add remote commands, such as: git remote add origin "https://github.com/xxx/xxx.git ".

4. add the code to VCS (git Add), select the file to be submitted-> VCS-> Git-> add,


5. commit Changes (git Commit) and VCS-> Commit Changes. For example, you can select commit and Push to directly push the Changes to the server.

6. Git Push, VCS-> Git-> Push.

Finally, if you clone a project to studio, for example,


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.