Github private warehouse setting

1, create a private warehouse

 2, in the center there is a personal "Developer setting" option: 

  3, there is a "Personal access tokens" option in the "Developer settings", click "Generate new token"

 4.  Enter a name and select the desired permissions :

  5, click on "Generate token" to create success, to create something like the following token string will appear after successful, we must assist paste out;

This token is displayed only once, if you do not copy it, then it will not show up;

If it is forgotten, nor copied out, it can be deleted, and then generate a re.

  6, use:

Clone command: 
git clone HTTPS: // <token> @ github.com / <username> / <repository name>

  Therefore, the present example is the command:

HTTPS clone git: // [email protected]/ <username> / siyoucangku

7, the following:

 

Guess you like

Origin www.cnblogs.com/haojile/p/11616566.html