getRemoteCommitHash
约 79 字小于 1 分钟
2025-10-13
Karin API Docs / getRemoteCommitHash
函数: getRemoteCommitHash()
getRemoteCommitHash(
cwd,options?):Promise<string>
定义于: packages/core/src/utils/git/branch.ts:121
获取远程最新提交哈希
参数
cwd
string
仓库路径
options?
返回
Promise<string>
远程最新提交哈希
Description
分支名称支持不带origin/前缀 会自动添加
