Android Deep Exploration (Vol. 1) HAL and Driver Development Chapter III

Source: Internet
Author: User

Install Git

$ make prefix=/usr all; # as yourself
$ make prefix=/usr install; # runs with root privilegesThe git library is made up of three partsThe git repository is the. git directory, which holds the document index content that we submit, and Git can track the document it manages based on the document index content, enabling document versioning. The Git directory is located in the working directory. 1) Working directory: User's local directory;
2) Index: Generate a snapshot of all files (including subdirectories) in the working directory, and store them in a temporary storage area, which Git calls the area as an index.
3) Warehouse: Submit the index to the warehouse through the commit command, each time the commit means that the version
is being updated
git initialization configuration:
1) Configure the name of the person using the Git repository
git config--global user.name "Your name Comes here"
2) Configure the people who use the git repository email
git config--global user.email [email protected]git creates a branch:Git config-global user.name "Your name"git config-global user.email "[email protected]"
Create a folder to store projects
the GIT init command is used to initialize this project in the current directory
a hidden file is created. Git
Create a main.c file
create the. gitignore file, ignoring any project files inside the file
git Status View project status
git add:
 1: Clone the database (including code and version information) from the server onto a single machine.
2: Create a branch on your own machine and modify the code.
3: Commit the code on the branch you created on the stand-alone.
4: Merge Branches on a single machine.
5: Create a new branch, fetch the latest version of the code on the server, and merge it with your main branch.
6: Create patches to send patches to the main developer.
7: Looking at the feedback from the main developer, if the main developer discovers that there is a conflict between the two general developers (they can work together to resolve the conflict), they will be asked to resolve the conflict before being submitted by one of them. If the main developer can resolve it himself, or if there is no conflict, pass.
8: The method of resolving conflicts between the general developers, the developer can use the pull command to resolve the conflict, resolve the conflict and then submit the patch to the main developer.

 

Android Deep Exploration (Vol. 1) HAL and Driver Development Chapter III

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.