Androidstudio using git-Advanced Chapter (ii)--new branch (branch) and pull requests (by Star Wuge)

Source: Internet
Author: User

Reprint please mark source : http://blog.csdn.net/lsyz0021/article/details/51842774


Androidstudio using git-entry (i)-Upload and download items from GitHub

Androidstudio using git-Advanced Chapter (ii)--new branch (branch) and pull request


A while ago, I wrote an article about how to use the upload project to GitHub at Androidstudio, and today he brings up his advanced article-New Branch (branch) and pull request.

In the real development we seldom write the code commit after the direct push code up, because this did not pass the second person's audit, so we today to tell you the new branch and pull request. The concept of branching (branch) actually allows us to manage the code exactly, and the module we create in Studio is actually (Master Branch) master by default. You see, from the name of the project that sees our current zip file from GitHub, there's a master (like the one we're talking about Rsscan1-master.zip), which is actually the concept of the main branch.

First we go to GitHub to download (how to download items from GitHub (HTTPS://GITHUB.COM/LSYZ0021/RSSCAN1), introductory article) This example of our today Rsscan1-master this project, Copy the address Https://github.com/lsyz0021/RSScan1.git.


I'm going to show you how to do this with a lot of work.


First, download the project







Second, modify the code


Third, open the Code version management function





IV. Commit Code







v. New BRANCH






VI. Push code





VII. Managing Branch code on GitHub










viii. Deleting a branch





ix. Remove the branch from the studio side







At this point we have finished all the work.







Androidstudio using git-Advanced Chapter (ii)--new branch (branch) and pull requests (by Star Wuge)

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.