I would like to perform a branch comparison in a Github Action. But git branch
returns an ls
-like result instead with a list of files!
run: echo $(git branch)
shell: /bin/bash -e {0}
LICENSE README.md index.html node_modules package-lock.json package.json src yarn.lock (HEAD detached at pull/29/merge)
Why is that? Is it broken?
How to perform git commands on branches?