【发布时间】:2020-10-01 16:30:27
【问题描述】:
我想在 Github Action 中执行分支比较。但是git branch 返回类似ls 的结果,而不是文件列表!
run: echo $(git branch)
外壳:/bin/bash -e {0}
LICENSE README.md index.html node_modules package-lock.json package.json src yarn.lock(HEAD 在 pull/29/merge 时分离)
这是为什么呢?坏了吗?
如何在分支上执行 git 命令?
【问题讨论】:
标签: git continuous-integration git-branch github-actions