getRemoteBranches
约 83 字小于 1 分钟
2025-10-13
Karin API Docs / getRemoteBranches
函数: getRemoteBranches()
getRemoteBranches(
cwd):Promise<GitRemoteBranches[]>
定义于: packages/core/src/utils/git/branch.ts:81
获取git仓库远程分支列表
参数
cwd
string
仓库路径
返回
Promise<GitRemoteBranches[]>
远程分支列表 包含哈希和分支名称
抛出
执行发生错误 例如stdout类型错误
