41 | Why is GitHub so popular?#
Background: Git makes collaboration easier, but it doesn't help developers find open-source projects, nor can open-source projects proactively reach out to developers.
With the advent of GitHub, its vision is to make collaboration and software writing easier.
42 | What are the core features of GitHub?#
It mainly includes seven major modules, you can jump to Features——GitHub for specific introductions.
PS: GitHub's CI is provided by many third-party companies, while GitLab has its own CI.
GitHub also offers many excellent tools, you can jump to MarketPlace——GitHub, where more surprises await you to discover.
43 | How to quickly find interesting open-source projects?#
Advanced Search
How to enter: After selecting the search box on the GitHub homepage, press enter without entering any content, and click the "advanced search" link at the bottom left.
You can limit: creation date, number of stars, certain files as the search scope...
For example, search:
iOS excellent library in:readme
——⚠️ There should be no space after the colon.
stage filename:.gitlab-ci.yml
—— Search for code files that contain stage in .gitlab-ci.yml.
For more usage, refer to Searching for information on GitHub——official
PS:
- If you just input text normally, the search engine will only match repository names and descriptions.
- As of 2021.11.7, GitHub still does not support searching Code options and Repository options simultaneously.
For example:stage filename:.gitlab-ci.yml stars:>1000
44 | How to set up a personal blog on GitHub#
Using the advanced search from the previous section, search for blog easily start in:readme stars:>5000
, and found a great tutorial: barryclark/jekyll-now
You can start following along from here:
-
Fork Jekyll Now to your User Repository, and rename the repository like [yourgithubusername].github.io
-
Customize by editing the _config.yml file and view your site
-
Publish your first blog post
45 | How do open-source projects ensure code quality?#
For example, GitHub:
- Pull Requests: Initiated from a forked project, requesting to merge a certain branch into the source branch
- Checks: Includes CI processes, providing an automated checking function
- Code Review: Code review, comments, and suggestions
- ...
46 | Why do we need organization-type repositories?#
For example, GitHub: In addition to personal repositories, there are also organization-type repositories.
An organization contains:
- Multiple repositories
- Multiple members: People can see which repositories are in the organization and can apply to the administrator for permissions when needed, which is different from GitLab's mechanism
- Multiple teams: Each team can also have sub-teams, and they have different permissions for each repository
- Permissions include: Admin, Write, Read
Stay tuned, the next episode of GitHub will be even more exciting!