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)