Use git checkout to specify the specified branch on the GIT code library

Source: Internet
Author: User
Tags git commands

Since SVN was used all the time before and git was used in the wolf factory. Brother's Development Environment: intellij

Let's talk about the simple operation process.

1. Check out the GIT code library

CD to the specified directory

Git clone http: //.../Android. Git

Clone remote code to local


2. Git branch-R

Displays all branchs in the GIT library.


3. Git checkout-B master_3.0

Master_3.0 here is the origin/master_3.0 in the branch list in the previous step, which is also the branch we want to check.

For more information about common git commands, see the following link:

Http://blog.csdn.net/ithomer/article/details/7529022

Well written!


Create a new project in intellij, and then import the project. Git: master_3.0 is displayed in the lower right corner of the project. This is the current branch.

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.