[Study notes] Han Shunping - Quickly learn github - github tutorial github video github getting started

Github in action: Create a repository and publish it to the public network for everyone to access

  • Effect: https://tnhsp2.github.io/You will see a big whale on the website
  • Step 1: Create a repository according to the specification, [prompt to use email, create a github account first], visit github, recommended 谷歌浏览器, vpn, format is username.github.io
  • Step 2: Download github desktop and associate it with your github account
  • Step 3:
    1 Go directly to sign in to github.com
    2 After entering the password, you can log in
  • Step 4: Select the username.github.io window to clone
  • Step 5:
    1. After cloning, enter the folder corresponding to the project (empty), copy your project source code file here
    2. You will see that there are new files on github desktop, first commit to the local warehouse, and then proceed publish branch (upload to github.com), then you will see github.com your username.github.io has source files added.

Apply for a top-level domain name and point to tnhsp2.github.io

  • Apply for a domain name on Alibaba Cloud, Tencent Cloud, GoDaddy or freenom, pointing to tnhsp2.github.io

Look at an actual open source project jQuery

  • Interface https://github.com/jquery/jquery
  • The project documentation on github is written in markdown

The meaning of the label on the interface

  • Watch: Pay attention to project changes, such as being submitted by pull, request, issue, etc., in your notification center, you have received a message
  • Star: similar to the likes and support of WeChat Moments, making the project more popular
  • Fork: Get a copy of the original project. If the original project changes later, you need to handle the synchronization yourself
  • Branch: branch
  • Tag: label

compare - Compare different versions of the project

  • The url/compare of the project can compare different versions, such as https://github.com/jquery/jquery/compare
  • You can see how many files have changed and how many commits there are
  • Tip: Version comparison can also be performed directly using the git tool

issues-comments/topics: discussions about the project

  • For example, Bug, Build, help wanted, etc., you can ask all kinds of questions

Possible states:

  • Open: under discussion
  • Closed: Closed, if resolved
  • Issues can increase the communication between developers and users, and you can also create an issue

pull requests - contribute code

  • Referred to as pr, if you want to contribute code to this project, you can initiate a Pull Request on Github
  • If it is approved by code review and officially merged, you will contribute to the project

Actions-CI\CD service

  • Github Action is a CI\CD service launched by Github
  • CI\CD is actually: continuous integration, continuous delivery, continuous deployment.
  • Generally, we use Github as a code warehouse or version management tool. With Github Action, we can do more things. For example, when a piece of code is submitted on the master branch, Github Action can be automatically deployed to the specified server. You can also make the code into a mirror, and automatically submit the mirror to the mirror warehouse.

Projects - project board

  • Helps organize and prioritize work
  • Project boards provide the flexibility to create workflows that suit your needs
  • Project boards include issues, pull requests, and comments, categorized as cards in a selected column
  • Drag and drop or use keyboard shortcuts to reorder cards in columns, move cards between columns, and change the order of columns

Wiki - Wikipedia

  • Can explain all aspects of the project, support markdown

insights - Overall browse related statistics for the project

  • Contributors: See the approximate number of commits, code additions, and code removals by users for that date.
  • commits: Shows the approximate number of commits received in a year. Can tell if a repository is actively being updated.
  • Code Frequency: Shows the addition and removal of lines of code in this repository.
  • Network: Shows commits from all branches including cloned repositories.
  • Fork: Cloning of the code warehouse on the server side.

settings - settings

  • Make any settings for the repository. Users must have permission settings (usually their own repository) to see this page.
  • Modify the warehouse name.
  • Features: Change the related settings of Wiki and Issue. If you want to turn off certain features, just uncheck the corresponding checkbox.
  • Merge Button: Set the merge code method (now under Pull Requests)
  • Github Pages: Each Github account can open its own static website (the domain name is username.github.io) (now under pages in the sidebar)
  • Danger Zone: Users can make a warehouse private or change the owner of the warehouse, or even delete the warehouse itself. You must be cautious when operating here.

Guess you like

Origin blog.csdn.net/zhangyifeng_1995/article/details/129056262