When I run .git/refs/heads, it shows only the branches that I have checked out locally. How can I create refs/heads to all my branches? Or how can I create refs/heads to all the origin/?
I am working with Azure DevOps. I am using their predefined variables that will ONLY return the branch ref of the source/target of the Pull request. However, those variables will return, for example, refs/heads/feature. So after I am getting the refs, I am using git rev-list $branch-ref in one of my devops tasks. But it giving me the ambiguous argument 'refs/heads/feature': unknown revision ERROR. I think that is happening because the git checkout that is happening does not have those references. However, when I use origin/feature it works fine. So I am trying to find a way that I turn all origin/ into refs/heads/