返回市场
命令
update-profile
update-profile更新 GitHub 个人资料页(Bio、网站、公司等)
Parameters
| Name | Type | Req | Description |
|---|---|---|---|
| bio | string | No | 个人简介 |
| blog | string | No | 网站 URL |
| company | string | No | 公司 |
| location | string | No | 地点 |
| name | string | No | 显示名称 |
| hireable | boolean | No | 是否开放招聘 |
xbrowser github update-profile --help
add-social-link
add-social-link添加社交链接到 GitHub Profile
Parameters
| Name | Type | Req | Description |
|---|---|---|---|
| url | string | Yes | 社交链接 URL |
xbrowser github add-social-link --help
create-gist
create-gist创建 GitHub Gist(带外链)
Parameters
| Name | Type | Req | Description |
|---|---|---|---|
| filename | string | Yes | 文件名 (readme.md) |
| content | string | Yes | Gist 内容(支持 Markdown) |
| description | string | No | Gist 描述 |
| public | boolean | No | 是否公开 (true) |
xbrowser github create-gist --help
get-profile
get-profile获取 GitHub 用户 Profile 信息
Parameters
| Name | Type | Req | Description |
|---|---|---|---|
| username | string | No | GitHub 用户名,不填则获取自己的 |
Examples
xbrowser github get-profile
获取 Profile 信息
xbrowser github get-profile --help
create-repo
create-repo创建 GitHub 仓库
Parameters
| Name | Type | Req | Description |
|---|---|---|---|
| name | string | Yes | 仓库名称 |
| description | string | No | 仓库描述 |
| private | boolean | No | 是否私有 (false) |
| readme | boolean | No | 是否初始化 README (true) |
xbrowser github create-repo --help
edit-readme
edit-readme编辑 GitHub 仓库的 README.md 文件
Parameters
| Name | Type | Req | Description |
|---|---|---|---|
| repo | string | Yes | 仓库名称(owner/repo 格式) |
| content | string | Yes | README 内容(Markdown) |
| message | string | No | 提交信息 |
xbrowser github edit-readme --help