Files
2026-08-20 23:43:38 +08:00

1.5 KiB
Raw Permalink Blame History

git-init 触发示例

当前测试版本:0.2.0

默认远程为 Gitea。把主机名换成你的实例。

初始化

用户:用 git-init 初始化,远程是 git@git.example.com:owner/repo.git

或:https://git.example.com:3000/owner/repo.git
或:ssh://git@git.example.com:2222/owner/repo.git

路径:Init → 首次 Commit → Push main

日常提交

用户:按 git-init 提交这些改动

路径:Commit(不 init)。说明含中文 类型: 描述 + 档案中的 Co-authored-by

日常推送

用户:推送到远程 / 推送到 Gitea

路径:Push

提交并推送

用户:提交并推送

路径:Commit → Push

克隆

用户:用 git-init 克隆 https://git.example.com/owner/repo.git

路径:Cloneprepare-auth.ps1git cloneprepare-commit.ps1

拉取

用户:拉取远程更新

路径:Fetch/Pull--ff-only

分支

用户:基于当前分支新建 feature/login 并切过去

路径:Branch git switch -c feature/login

合并

用户:把 feature/login 合进 main

路径:Merge

查看

用户:现在 git 状态怎么样

路径:Inspectrepo-status.ps1,不提交)

Gitea 密钥验证(网页开锁 / 找不到签名密钥)

用户:验证 Gitea 的 SSH 和 GPG / 提交显示找不到签名对应的密钥

路径:Verify keys — Agent 主动询问两个页面挑战令牌 → verify-gitea-keys.ps1 → 把签名块发回让用户点「验证」。