First, the problem description
Take the Coding IOS Client As an example of how to download an open source project on GitHub to a local
GitHub Address:Https://github.com/Coding/Coding-iOS
Second, the problem analysis
Depending on whether the project's git repository refers to a file in another repository , the Git repository is a git submodule sub-module, and there are two ways to download the open source project locally.
git submodule : The project's repository in some cases needs to reference files in other repositories, such as a common code base, can be
1. Project git repository does not reference files in other repository git repositories
For download that can be directly in the form of a zip compressed package to a local
2. The project's git repository references files from other repositories in the git repository
With Git submodule, you will need to clone the git repository locally. Of course, if the project does not use Git submodule, it can be downloaded to the local via clone.
Since the Coding IOS client uses git submodule, you will need to clone the Git repository to a local
Third, problem solving
To run the terminal locally, switch paths for the project save path
Copy Coding git repository in Coding official client: Https://github.com/Coding/Coding-iOS.git
Then clone to local
Complete
IOS 13 Learning Series: How to download Open source projects on GitHub to a local