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 updatedgit 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