git: difference between “branchname” and “refs/heads/branchname”

A ref is anything pointing to a commit, for example, branches (heads), tags, and remote branches. You should see heads, remotes, and tags in your .git/refs directory, assuming you have all three types of refs in your repository.

refs/heads/0.58 specifies a branch named 0.58. If you don’t specify what namespace the ref is in, git will look in the default ones. This makes using only 0.58 conceivably ambiguous – you could have both a branch and a tag named 0.58.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)