This chapter focuses on the learning of Git and introduces the source code that Git uses to get a lot of open source projects.
1. Install the git command:
#apt-get Install git
# apt-get Install Git-doc git-svn git-email Git-gui gitk
2. View the GIT documentation:
# Man Git-checkout
3. Submission and acquisition of source code
1. Create repository: Git init git's repository is divided into local repository and remote repository. At the beginning of an open source project, you need to create an empty repository locally using git init. Its commands are:
# Mkdir–p/demo/helloworld–git
# Cd/demo/helloword–git
And 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.
2. Submit text to the local repository: git commit
3. Create a local branch: Git Brarich
4. Switch local branch: Get Checkout
Android Deep Explore Chapter III experience