登录github
头像选择settings
![](https://cdn.saiita.com.cn/wp-content/uploads/2022/06/1654874708-github-settings.png?x-oss-process=image/interlace,1/quality,Q_90)
Developer settings
![](https://cdn.saiita.com.cn/wp-content/uploads/2022/06/1654874740-github-Developer-settings.png?x-oss-process=image/interlace,1/quality,Q_90)
Personal access tokens
![](https://cdn.saiita.com.cn/wp-content/uploads/2022/06/1654874763-github-Personal-access-tokens.png?x-oss-process=image/interlace,1/quality,Q_90)
创建token
Expiration,选择Expiration
select scopes 选择repo,workflow,delete_repo
点击创建,genetate token
![](https://cdn.saiita.com.cn/wp-content/uploads/2022/06/1654874788-github.png?x-oss-process=image/interlace,1/quality,Q_90)
复制生成的token
树莓派 Linux输入下面的命令行
git remote set-url origin https://<your_token>@github.com/<USERNAME>/<REPO>.git
就可以直接用git push 把代码推送到github上
微信扫描下方的二维码阅读本文
本作品采用知识共享署名-相同方式共享 4.0 国际许可协议进行许可。
暂无评论
要发表评论,您必须先 登录