- 追加された行はこの色です。
- 削除された行はこの色です。
#author("2021-05-04T20:44:10+09:00","default:ryuichi","ryuichi")
* ref - 参照[#v36c5c90]
#author("2021-05-05T03:29:25+09:00","default:ryuichi","ryuichi")
* .git/refs [#u4bad5ae]
** refのある場所 - .git/refs [#h5ba0f78]
.git/refs/heads/ 🡆 ローカルブランチ
.git/refs/remotes/ 🡆 リモートブランチ
.git/refs/tags/ 🡆 タグ
cat ./refs/heads/master
45cd154a8cb01bb47d9901ba2cea51a47e11bc9c 🡆 コミットオブジェクト
- refは文字通り参照でしかない
- したがって、上の例で、masterブランチを削除するとそのコミット(45cd1)がmasterブランチ上のコミットであったことを知る方法はなくなり、到達不能になる
** 参考 [#i35f1dcb]
https://git-scm.com/book/ja/v2/Git%E3%81%AE%E5%86%85%E5%81%B4-Refspec