In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
How to use GitHub, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain for you in detail, people with this need can come to learn, I hope you can gain something.
Introduction to GitHub
GitHub is a remote code hosting platform for Git. In addition to code hosting, it also provides functions such as problem publishing, pull request, report statistics, and so on. The following figure shows the statistics of the contributors to the EFCore project:
GitHub provides a complete set of remote collaboration solutions, so it is the preferred platform for open source projects, and many well-known projects are hosted on GitHub.
GitHub can create its own open source code repository for free, as well as paid services such as private repositories, GitHub enterprise solutions, etc.
Individuals and organizations
GitHub provides personal warehouses and organizational repositories, which are suitable for individual open source projects and organizational open source projects respectively.
Personal warehouse home page:
Organize the warehouse home page:
Create an organization:
Fill in the organization information:
Creation and maintenance of warehouse
1. Create a warehouse (individual and team warehouse creation is similar, the following is a team warehouse)
two。 Warehouse maintenance:
For each warehouse, GitHub provides code management (Code), problem management (Issues), pull request (Pull Request), project management (Projects), encyclopedia (Wiki), statistics (Insights), warehouse setup (Settings) functions, through which you can maintain the code repository:
Fork and Pull request
Fork and Pull request are the core functions of code sharing on GitHub. Here's how to use Fork and Pull Request to complete code contribution:
1. Fork the contribution target repository to your own warehouse:
two。 Get the repository after Fork, get and modify the code, and finally push it to the remote branch (using the master branch directly):
After modifying the code, push the modified content to the remote warehouse:
Note: more content references for using Git: "good code is managed-use Git to manage source code" and "good code is managed-Git branch workflow and Pull Request".
3. Initiate Pull Request:
Creating a new pull request will display the following information (the code is merged from the SelimTeam repository to the yqszt repository, the code is mergeable, and the code difference information):
The request will be created when the "Create Pull Request" button is clicked.
4. Processing Pull Request:
The owner of the yqszt/MyBlog library, you can see the corresponding information in the pull request tab and merge:
File discrepancies:
Merge Pull Request:
Merge result:
The editor introduces how to use GitHub for a personal / team code repository. For a GitHub repository, it not only provides basic code version management functions, but also provides problem management, project management, encyclopedia, pull requests, data statistics and other functions. Warehouse owners (developers) can use GitHub for project management, code management, and related knowledge can be published through the encyclopedia. So that the beneficiaries and contributors of the project can get the project information quickly, and the contributors can not only get the information through Wiki, but also ask questions or make contributions to the project through Issue and Pull Request. All communication between owners and contributors can be completed through Github.
In addition, Github's fork and pull request are actually the implementation of the "integration manager workflow" mentioned in the previous article, in which code review is actually mandatory when merging pull request's code, which is suitable for both local development teams and open source projects where developers come from all over the world.
From these aspects, Github is no longer a simple Git remote warehouse hosting platform, but a distributed software development management solution.
Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.