11
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

GitHubでCC0のLICENSEファイルを自動生成する

Last updated at Posted at 2019-01-17

GitHubにはLICENSEファイルの自動生成機能がありますが、現在CC0は選べません。
※以前は選べたようです
https://qiita.com/spiegel-im-spiegel/items/cc3d9cc46cc931b0e921

現在は著作権放棄のライセンスとしてUnlicenseを選べますが、Wikiを見る限りCC0の方が適切に思えます。
https://ja.wikipedia.org/wiki/Unlicense
スクリーンショット 2019-01-17 13.00.44.png

CC0を宣言したい場合はLICENSEファイルを自作する必要があると思っていましたが、GitHub上で自動生成する方法を知ったので共有します。

方法

とりあえずLICENSEファイル無しでリポジトリを作成する。

// 作成されたリポジトリのURL
https://github.com/<user>/<repo>

次に、リポジトリURLの末尾に/community/license/new?branch=master&template=cc0-1.0を付けてアクセス

// 例
https://github.com/<user>/<repo>/community/license/new?branch=master&template=cc0-1.0

するとCC0のテンプレートが反映されたLICENSEファイル作成ページが開くので、
スクリーンショット 2019-01-17 12.27.00.png
Review and submitボタンを押してプルリク作成 & マージで完了です。

11
6
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
11
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?