#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

トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS