GitHub生成Token
在 GitHub 中,Token(令牌)是一种用于身份验证和授权的机制,允许用户或应用程序在不使用密码的情况下访问 GitHub 的 API 或执行特定操作。
登录github官网,按以下图片步骤点击(其中repo必选)
创建后生成的token要保存好,只有创建时可见
通过令牌访问代码库
<token> -- 创建好的令牌
<username> -- github的用户名
<reponame> -- 远程仓库名
git remote set-url origin https://<token>@github.com/<username>/<reponame>.git
首次clone代码
git clone https://<token>@github.com/<username>/<reponame>.git
更多vue相关插件及后台管理模板可访问vue admin reference,代码详情请访问github