Android Deep Explore (Vol. 1) HAL with driver development
Chapter III Getting Started with GIT
Experience
This chapter focuses on the learning of Git and introduces the source code that Git uses to get a lot of open source projects.
Before using Git, we first install it with the Install command:
#apt-get Install git
#apt-get Install Git-doc git-svn Git-gui GITK
Under Linux, you can use the Man command to view the help documentation for the specified command directly. This is a great help to our beginners.
The functionality of Git is complex, and for this example we demonstrate how to create a repository, submit source code, create a branch, upload source code to a remote server, and get source code from a remote server.
Create a repository Gitinit git's repository is divided into a local repository and a remote repository. At the beginning of an open source project, you need to use GIT init to build a local repository that is identical to the remote repository. Its commands are:
# Mkdir–p/demo/helloworld–git
# Cd/demo/helloword–git
Then execute # qit init will output initialized empty Git repository In/demo/helloworld–git/.git
Then use the LS command in the Helloword-git directory # Ls–al An empty repository is now set up.
Submit text to the local repository: git commit uses git to manage files (git is not just a tool for managing your source code, you can also manage any file). Then create local branch: Git branch its command to # git branch new-branch
Focus on creating an open source project on GitHub, using git to manage your source code using a remote git hosting server.
In short, we need to be familiar with Git.
http://www.cnblogs.com/xl9313/
Android Deep Exploration (Vol. 1) HAL and Driver Development Chapter III experience of getting started with GIT