git-create-repo
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseGit Create Repo
Git Create Repo
在 GitHub 上创建新的仓库并 clone 到本地。
Create a new repository on GitHub and clone it locally.
触发条件
Trigger Condition
当用户要求创建一个新的 GitHub 仓库时使用此 skill。
This skill is used when the user requests to create a new GitHub repository.
执行步骤
Execution Steps
-
创建仓库:bash
gh repo create <repo-name> --public --add-readme- 默认创建公开仓库()。
--public - 如果用户明确要求私有仓库,使用 替代。
--private - 默认添加 README 文件。
- 默认创建公开仓库(
-
Clone 仓库:bash
gh repo clone zc277584121/<repo-name> -
确认结果:进入项目目录,向用户报告仓库创建成功。
-
Create Repository:bash
gh repo create <repo-name> --public --add-readme- Creates a public repository by default ().
--public - If the user explicitly requests a private repository, use instead.
--private - Adds a README file by default.
- Creates a public repository by default (
-
Clone Repository:bash
gh repo clone zc277584121/<repo-name> -
Verify Result: Navigate to the project directory and notify the user that the repository has been created successfully.
注意事项
Notes
- GitHub 账号为 。
zc277584121 - 如果用户没有指定公开或私有,默认使用公开()。
--public - 如果用户提供了描述,使用 参数。
--description
- The GitHub account is .
zc277584121 - If the user does not specify public or private, public () is used by default.
--public - If the user provides a description, use the parameter.
--description