Bo2SS

Bo2SS

6 Getting to Know GitHub

Background: Git makes collaboration easier, but it cannot help developers find open source projects, and open source projects cannot actively push to developers.

With the advent of GitHub, its vision is to make collaboration and software development easier.

image

Ten Years of GitHub

42 | What are the Core Features of GitHub?#

It mainly includes seven modules, you can go to Features on GitHub to see specific introductions.

image

PS: GitHub's CI is provided by many third-party companies, while GitLab has its own CI.

GitHub also provides many excellent tools, you can go to Marketplace on GitHub to discover more surprises.

43 | How to Quickly Find Interesting Open Source Projects?#

Advanced Search

How to access: After selecting the search box on the GitHub homepage, without entering any content, press Enter and click the "advanced search" link in the lower left corner.

You can limit: creation date, number of stars, a specific file 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 .gitlab-ci.yml code files that contain the word "stage".

For more usage, you can refer to Searching for information on GitHub——Official Documentation

PS:

  • If you simply enter text, the search engine will only match repository names and descriptions.
  • As of November 7, 2021, GitHub does not support searching for Code options and Repository options at the same time.
    For example: stage filename:.gitlab-ci.yml stars:>1000

44 | How to Build a Personal Blog on GitHub#

Through the advanced search in the previous section, search for blog easily start in:readme stars:>5000, and find a good tutorial: barryclark/jekyll-now

You can start following the tutorial from here:

  1. Fork Jekyll Now to your User Repository, and rename the repository as [yourgithubusername].github.io

  2. Customize by editing the _config.yml file and view your site

  3. Publish your first blog post

45 | How to Ensure Code Quality in Open Source Projects?#

For example, on GitHub:

  • Pull Requests: Initiated from a forked repository, requesting to merge a branch into the source branch
  • Checks: Includes the CI process, providing an automated checking function
  • Code Review: Code review, commenting, and providing suggestions
  • ...

46 | Why Do We Need Organization Repositories?#

For example, on GitHub: In addition to personal repositories, there are also organization repositories.

An organization contains:

  • Multiple repositories
  • Multiple members: You can know which repositories are in the organization. When you need permission for a certain repository, you can request it from the administrator, which is different from GitLab's mechanism.
  • Multiple teams: Each team can have sub-teams, and they have different permissions for each repository
    • Permissions include: Admin, Write, Read

Stay tuned for the next episode, GitHub will be even more exciting!

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.