拆自 gh-parity 专项。对齐 gh auth setup-git。纯客户端 git credential helper 配置。
gh auth setup-git
配置 git 使用 gc 作为 credential helper,使 git 操作自动携带 GitCode 认证。
gc auth setup-git [--hostname <host>]
行为:设置 git config --global credential."https://gitcode.com".helper 为 gc 的 credential helper 命令。
git config --global credential."https://gitcode.com".helper
gh auth setup-git [--hostname <host>]
--hostname
Refs gitcode-cli/cli#506
背景
拆自 gh-parity 专项。对齐
gh auth setup-git。纯客户端 git credential helper 配置。需求
配置 git 使用 gc 作为 credential helper,使 git 操作自动携带 GitCode 认证。
命令接口
行为:设置
git config --global credential."https://gitcode.com".helper为 gc 的 credential helper 命令。对齐 gh 参考
验收标准
Refs gitcode-cli/cli#506