简体   繁体   中英

Git refs - why is it called heads instead of branches?

Just curious when you look in the git/refs directory:

.git/refs/heads
.git/refs/tags

why is it called refs/heads instead of refs/branches?

can you give example of heads that are not branches?

A detached head is not a branch.
But all branches are referenced by a HEAD, as direct reference to the last commit of their branch.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM