Android Self-study notes: Git download source code

Source: Internet
Author: User

Info: Doing J2ME years, and now basically no company used, it is time to move to the Android field.

Self-study, inevitably there will be omissions, there are problems please put forward, common learning common progress.

2014-10-13: First Edition

2014-10-14: Add the download after the interruption of the processing method, unfortunately written on the internet has no way to use, re-download only, who have the method hope to inform.

--------------------------------------------

First, the environment:

URL: https://android.googlesource.com/(Cannot access please FQ)

Tools: Git (default install)

Second, start the download

A. Create a new folder (name optional)

B. Go to the folder, right-click Git Bash here

C. Open https://android.googlesource.com/(please FQ if you can't get in)

D. Enter git clone https://android.googlesource.com/name after $

E. For example, I want to download the file under Frameworks/base, just enter

git clone https://android.googlesource.com/platform/frameworks/base

The next is a long wait, depending on its speed ~ ~

This looks like when the download is complete:

third, the small problems encountered :

If you have accidentally interrupted .... (I interrupted several times, online tried a variety of methods ineffective, crying ~) again clone will report the following error:

Error message:

Fatal:destination path '. ' already exists and is not an empty directory.

Workaround (In fact, delete the re-download, if there are other ways to tell):

    LS-a      rm. Git/-RF  

If permission denied appears, check to see if any other programs are using the. git folder.


Android Self-study notes: Git download source code

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.