命令行直接生成远程仓库

如下命令,使用命令行直接生成github中的项目

curl -u suwu150 https://api.github.com/user/repos -d '{ "name": "suwu150.github.io.server" }'
curl -u liaa https://api.github.com/user/repos -d '{ "name": "awesomeOne" }' 

对上面命令回车之后 会要求输入github密码,输入即可
其中
liaa - 用户名
suwu150是用户名,github的用户名
awesomeOne - 仓库名称
suwu150.github.io.server 是仓库名称,云端仓库名称

猜你喜欢

转载自blog.csdn.net/suwu150/article/details/80689738