@aacc/ginit 中文文档教程
@aacc/ginit
轻松初始化本地和远程存储库
Usage
npx @aacc/ginit <repo-name>
从 GitHub 的 .gitignore
模板自动添加 .gitignore
文件
TEMPLATE=node npx @aacc/ginit <repo-name>
Important
此工具使用 GitHub GraphQL API,因此需要 GitHub 访问令牌。 在此处使用 repo
范围创建访问令牌:https://github.com/settings/tokens/new。
生成访问令牌后,您可以将其设置为全局环境变量或将其直接传递给 npx
命令。
Example
GITHUB_TOKEN="abc123" npx @aacc/ginit <repo-name>
或全球...
echo 'export AACC_GINIT_TOKEN="abc123"' >> ~/.zshrc
npx @aacc/ginit <repo-name>
@aacc/ginit
Easily initialize a local and remote repository
Usage
npx @aacc/ginit <repo-name>
Automatically add a .gitignore
file from GitHub's .gitignore
templates
TEMPLATE=node npx @aacc/ginit <repo-name>
Important
This tool uses the GitHub GraphQL API and thus requires a GitHub access token. Create an access token with the repo
scope here: https://github.com/settings/tokens/new.
After generating an access token you can set it as a global environment variable or pass it directly to the npx
command.
Example
GITHUB_TOKEN="abc123" npx @aacc/ginit <repo-name>
Or globally…
echo 'export AACC_GINIT_TOKEN="abc123"' >> ~/.zshrc
npx @aacc/ginit <repo-name>