tag 和 release 2021-10-09
把自己的feature代码合进master后,要使用新的feature就需要在当前master上打一个tag,这样才能引用含有feature版本的代码
tag本质上是指向特定commit的一个指针
自己打tag的时候,发现有个可选项“as a release”,于是研究了下两者的区别
A
tag
is a pointer to a specific commit. This pointer can be super charged with some additional information (identity of the creator of the tag, a description, a GPG signature, ...).A
tag
is a git concept whereas aRelease
is GitHub higher level concept.
tag
属于git的概念,而Release
是GitHub这些平台层级的更高级的概念As stated in the official announcement post from the GitHub blog: "Releases are first-class objects with changelogs and binary assets that present a full project history beyond Git artifacts."
A
Release
is created from an existingtag
and exposes release notes and links to download the software or source code from GitHub.