获得徽章 0
如何通过Github API在本地创建远程仓库?
1. 创建一个具有repo权限的Personal Access Token
路径:头像-》Settings-》侧边栏”Developer Settings“-》Personnal access tokens -》Tokens(classic),然后勾选”repo"

2. 替换这行命令中的${token}和${repo-name},然后执行
```bash
curl -X POST \
-H "Authorization: ${token}"
-H "Accept: application/vnd.github.v3+json" \
api.github.com \
-d '{"name": "${repo-name}", "private": false}'
```
展开
崔小叨于2023-06-29 13:55发布的图片
崔小叨于2023-06-29 13:55发布的图片
崔小叨于2023-06-29 13:55发布的图片
评论
@https://github.com/Patricklea/Blog
@https://github.com/Patricklea/Blog
@https://github.com/Patricklea/Blog
关注了
祯民
VIP.5 如鱼得水
@https://github.com/Patricklea/Blog
关注了
Cobyte
VIP.5 如鱼得水
@https://github.com/Patricklea/Blog
@https://github.com/Patricklea/Blog
@https://github.com/Patricklea/Blog
@https://github.com/Patricklea/Blog
@https://github.com/Patricklea/Blog
@https://github.com/Patricklea/Blog
@https://github.com/Patricklea/Blog
关注了
_小九
VIP.5 如鱼得水
@https://github.com/Patricklea/Blog
@https://github.com/Patricklea/Blog
@https://github.com/Patricklea/Blog
@https://github.com/Patricklea/Blog
@https://github.com/Patricklea/Blog
@https://github.com/Patricklea/Blog
下一页
个人成就
文章被点赞 67
文章被阅读 37,368
掘力值 777
收藏集
13
关注标签
35
加入于