Read "Android Deep Exploration (Volume 1) HAL and drive Development" some thoughts 03

Source: Internet
Author: User
Tags hosting using git

The third chapter is about getting started with git. I understand that git is a good source code management software, other similar software has CVR, SVN and so on. It is used to manage Android and

A lot of source code involved in the Linux kernel, the driver development process. If you want to participate in the development of the Linux kernel, then git becomes a compulsory course.

If the Linux system does not have a git, you can use the following method to switch to the latest version of Git.

#apt-get Install git

#apt-get Install Git-doc git-svn git-email Git-gui gitk

Under Linux, you can use the Man command to view the help document for a specified command (press the Q key to exit Help).

The third section gives a complete example of how to create a repository, submit source code, upload source code to a remote server, and get source code from a remote server.

Git's repository differs greatly from the way other repositories are organized. Git's repository is divided into local and remote repositories. Because the source code project may be done by many people together,

As a result, Git provides a branching concept. In other words, the person participating in the development creates a branch for each modification so that the commit does not affect the code of the main branch after the modification.

Local branches are designed to isolate changes to different parts of the main branch. Use the git checkout command to switch between different local branches. It is meaningless if you only operate locally.

Using Git to manage your source code will use a remote git hosting server. GitHub was used in 3.3.5 to host the files created above (helloworld.txt). GitHub is an eye

A popular Git hosting service provider.

Read "Android Deep Exploration (Volume 1) HAL and drive Development" some thoughts 03

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.