As a popular version control system, git is widely used by Internet companies. Currently, foreign websites include GitHub, and domestic websites include CSDN and OSCHINA git.
Git allows you to easily implement multi-person collaboration and version control. As a beginner, I will first look at how to use github from my perspective. I pay attention to operations rather than principles.
If you want to learn more about git, you are advised to read documents such as git getting started.
This article describes how to use other people's Code. At first, github was used as a good place to download open-source libraries. When I need an actionbar, chart, and menu for android, git can always find them. There are many of the world's best programmers working here. To make our development faster, we need to use the projects they have prepared.
1. Open github, and there will be a search box at the top. Enter the libraries we may use, such as chart.
2. All public chart items in github will be searched:
3. Because I am working on Android, here I select JAVA
We can see that here we are satisfied with the screening, and there are as many as 472 projects, choose the first one:
4. Android-charts
After opening Android-Charts, we can see a project interface: the main interface is the project name and code tree, and the right side is some properties of the project (topics, submissions, people, etc ), below is an introduction to the project:
In the code structure area, you can click a file to view the content of the current file.
In the project introduction area, the author will introduce the functions and usage of the project.
If you want to directly DownLoad the compressed package of this project, click DownLoad ZIP in the lower right corner;
If you want to directly Import the project to Eclipse (because I am working on android), open Eclipse, select File --> Import --> Projects from git --> URI, enter the HTTPS URL -- next
Select a branch, for example, Master --> next --> and select Save directory. eclipse automatically downloads the content for us.
Finally, we can import the project !~
The advantage is that there will be a git address. If the author updates the program one day, we can easily update our local git library.
Reprinted please indicate from: http://blog.csdn.net/icyfox_bupt/article/details/22966629