Use 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 提交歷史當作釋出邊界:只有已提交的本地歷史,才能算已經推送。
更多技能請訪問小蔥技能站7w4.net。
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