Android Deep Exploration (Vol. 1) HAL and Driver Development Chapter III experience of getting started with GIT

Source: Internet
Author: User
Tags using git

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

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.