API token for Github

时间:2021-12-26 03:37:22

1.如图所示:(前提是登录Github,进入Personal settings)

   

2,,创建token

3,生成token

4.

   Last login: Mon Dec  5 20:24:18 on console

    GlamordeMac-mini:~ glamor$ cd /Applications/MAMP/htdocs 

   GlamordeMac-mini:htdocs glamor$ composer create-project --prefer-dist yiisoft/yii2-app-basic basic

   Installing yiisoft/yii2-app-basic (2.0.10)

    - Installing yiisoft/yii2-app-basic (2.0.10)

     Loading from cache

 

  Created project in basic

  Loading composer repositories with package information

  Updating dependencies (including require-dev)

  Reading bower.json of bower-asset/jquery (1.11.2)

  Could not fetch https://api.github.com/repos/jquery/jquery-dist/commits/9690801db01709bfbff5f977d07fb7cc14472908, please create a GitHub OAuth token to go over the   API rate limit

  Head to https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+GlamordeMac-mini.local+2016-12-05+1300

  to retrieve a token. It will be stored in "/Users/glamor/.composer/auth.json" for future use by Composer.

  Token (hidden):

 

5,输入在Github上获得token,完成需要的安装更新。

   

API token for Github