首页 > 代码库 > API token for Github

API token for Github

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,完成需要的安装更新。

   

<style>p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff } p.p2 { margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #34bc26; background-color: #ffffff } p.p3 { margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff; min-height: 13.0px } span.s1 { } span.s2 { color: #000000 } span.s3 { color: #afad24 } span.s4 { color: #34bc26 }</style>

API token for Github