Use git checkout to specify the specified branch on the git code library
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.