Install
openclaw skills install github-personal-repo-publisherCreate a repository under your own GitHub account, wire a local project repo to it, and push committed history safely. 为你自己的 GitHub 账户创建仓库,把本地项目仓库接过去,并安全推送已提交历史。
openclaw skills install github-personal-repo-publisherUse this skill when a local Git project should be published to a new repository under your own GitHub account and the account access is managed through SSH plus a 1Password-stored PAT. 当本地 Git 项目需要发布到你自己 GitHub 账户下的新仓库,且账户访问通过 SSH 和 1Password 中保存的 PAT 管理时,使用这个 skill。
{baseDir}/README.md{baseDir}/WORKFLOW.md{baseDir}/FAQ.md{baseDir}/CHANGELOG.mdTreat Git history as the publish boundary: only committed local history should be described as pushed. 把 Git 提交历史当作发布边界:只有已提交的本地历史,才能算已经推送。
origin
添加或更新本地 originorigin already points to the correct repo, do not recreate the repositorygh is unavailable, use the REST API with a 1Password-managed PATprivate unless the user clearly wants public exposureorigin exists but points elsewhere, update it intentionally rather than assuming it is disposable中文解释:
origin 已经指向正确仓库,就不要重复建仓库。gh 不可用时,用 1Password 管理的 PAT 调 REST API。private,除非用户明确要求公开。origin 已存在但指向别处时,要有意识地更新,不要假设它可以随便覆盖。git -C /path/to/project status --short
git -C /path/to/project remote -v
git -C /path/to/project log --oneline -3
ssh -T git@github-grey0758
git ls-remote git@github-grey0758:grey0758/your-repo.git HEAD
TOKEN="$(op read 'op://OpenClaw/GitHub Fine-Grained PAT - Repo Admin - grey0758/credential')"
curl -fsSL -X POST -H 'Accept: application/vnd.github+json' -H "Authorization: Bearer $TOKEN" https://api.github.com/user/repos -d '{"name":"your-repo","private":true}'
git -C /path/to/project remote add origin git@github-grey0758:grey0758/your-repo.git
git -C /path/to/project push -u origin main
Always return: 始终返回:
gh is installed