(Transferred from http://source.android.com/source/git-repo.html, the company's network operator has questions, so you can view them in the company)
Using repo and git
To work with the android code, you will need to use both git and repo.
GitIs an
1. Any branch can be created locally. If you do not push it to the server git, the contents of the server will not be affected.
2. Use git push as follows:
Git push file: // home/hebo/work/testgit/Master
In this way, only the master branch is pushed
OverviewBefore we describe what git is, we need to make a basic overview of versioning (version control), which, in general, is managed and maintained on two dimensions of time and space, and the code itselfAnd the project files of the organization
1. Git Concepts1.1. Git libraries are 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
I. Instructions
1,Git cloneObtain the remote git repo corresponding to a URL and create a local copy. the general format is GIT clone [url]. the cloned repo will be named after the last slash of the URL to create a folder. to specify a specific name,
You're free to collect some git commands from the Web, sort it out.1. Common git commands
Command
Brief Description
Special Notes
git add
Add to Staging Area
Git add–interactive
Git for detailed use, git for use1. Git Concept1.1 The Git library consists of three partsGit repository is that. the git directory stores the submitted document index content. Git can track the content of the documents it manages based on the
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.