LoginSignup
0
0

gh release createで作成するタグ・リリースのリビジョンを指定する方法

Last updated at Posted at 2024-01-27

gh release createはデフォルトだとデフォルトブランチの最新リビジョンへのタグを作成します。

automatically get created from the latest state of the default branch

より古いリビジョンや別ブランチのリビジョンを指定するには--targetオプションを用います。

同名のタグが既に存在する場合はそのタグを再利用してリリースを作成するため(※エラーにならない!)、別のリビジョンへのタグ・リリースを作成するには、新たな名前を指定するか、既存のタグを削除してからgh release createを実行します。

GitHubではリリースを削除しただけではタグが削除されません。そのためタグも個別に削除する必要があります。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0