How Android Studio uses Git

Source: Internet
Author: User

Android Studio provides us with a git plugin that allows us to have a good version control, and we'll show you how to use it (the operating system is Win7).

1. Prepare, download git on window, set up git plugin in studio: File->setting->version control->git, and then click Test, such as: then you set it up successfully.

2. Initialize the GIT project (git init) with the following actions: Vcs->enable Control integration->select "git".

3. To add remote to git, in this step, studio does not provide a visual GUI for us to use git tools. Locate and open git Bash under the git installation directory, switch the directory to the project directory, and then enter the git add remote command, for example: Git remote Add origin "Https://github.com/xxx/xxx.git".

4. Add the code to the VCS (git add), select the file->vcs->git->add you want to submit,


5. Commit changes (git commit), vcs->commit changes, for example, you can push to the server directly by selecting commit and push at the time of submission.

6.Git Push,vcs->git->push.

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


How Android Studio uses Git

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.