Android Deep Explore Chapter III experience

Source: Internet
Author: User

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

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.