Git Ref - CI/CD用語集の定義
git ref は commit への名前付きポインタで、.git/refs/(または packed-refs)の下に保存されます。branch、tag、HEAD はすべて ref であり、それぞれ最終的に 40 文字の SHA-1(または SHA-256)commit ハッシュに解決されます。
git ref は commit への名前付きポインタで、.git/refs/(または packed-refs)の下に保存されます。branch、tag、HEAD はすべて ref であり、それぞれ最終的に 40 文字の SHA-1(または SHA-256)commit ハッシュに解決されます。
git ref は commit への名前付きポインタで、.git/refs/(または packed-refs)の下に保存されます。branch、tag、HEAD はすべて ref であり、それぞれ最終的に 40 文字の SHA-1(または SHA-256)commit ハッシュに解決されます。
CI で重要な理由
GitHub Actions は実行のきっかけとなった ref を github.ref(例えば refs/heads/main や refs/tags/v1.2.0)として公開し、workflow はこれを読み取って deploy するか、tag を付けるか、step をスキップするかを判断します。
関連ガイド
Git Tag - CI/CD Glossary DefinitionGit Tag: A git tag is a ref that points to a specific commit and, unlike a branch, does not move as new commi…
Refspec - CI/CD Glossary DefinitionRefspec: A refspec maps refs between a remote and your repository in the form `+<src>:<dst>`, for example `+r…
HEAD - CI/CD Glossary DefinitionHEAD: HEAD is the symbolic ref pointing to the current branch (or, when detached, directly to a commit). It m…