Take Gerrit-trigger-plugin as an example. The following links are directly copied from the corresponding page.
Method 1: Open the home page of the library on GitHub without using the GitHub account, and run the following command:
Read Only
Run Command $ git clone https://github.com/jenkinsci/gerrit-trigger-plugin.git
In the following three methods, you must register an account on GitHub, generate an SSH key, and add the public key to your personal account. For details, see GitHub help.
Read + write
$ Git clone git@github.com: flyingbird1221/gerrit-trigger-plugin.git
Read + write
$ Git clone https: // flyingbird1221@github.com/flyingbird1221/gerrit-trigger-plugin.git
You will be prompted to enter the password,Note that the password here is not the password of your account on GitHub, but the password of the user currently logged on to the system.
Read Only
$ Git clone git: // github.com/flyingbird1221/gerrit-trigger-plugin.git