Gistについて
すべての Gist は Git のリポジトリであり、フォークしたりクローンしたりできます。 When you create a gist, the gist will be associated with your account and you will see it in your list of gists when you navigate to your gist home page, http(s)://gist.[hostname)
,.
Gists can be internal or secret. Internal gists show up in Discover, http(s)://gist.[hostname]/discover
,, where enterprise members can browse new gists as they're created. それらのGistは検索もできるので、他の人々に自分の作業を探して見てもらうために使うこともできます。
Secret gists don't show up in Discover, http(s)://gist.[hostname]/discover
, and are not searchable. Secret gists aren't private. If you send the URL of a secret gist to another enterprise member, they'll be able to see it. However, if any other enterpise member discovers the URL, they'll also be able to see your gist. 好奇心の強い眼から自分のコードを守っておきたいなら、プライベートリポジトリを作成するとよいでしょう。
After creating a gist, you cannot convert it from internal to secret.
通知は以下の場合に送られます:
- あなたが Gist の作者である場合。
- 誰かがあなたを Gist 中でメンションした場合。
- いずれかの Gist の上部で [ Subscribe] をクリックして、Gist をサブスクライブした場合。
You can discover internal gists others have created by going to the gist home page, http(s)://gist.[hostname)
, and clicking All Gists. こうすると、すべての Gist が作成時刻または更新時刻でソートされて表示されるページに行きます。 また、Gist は Gist Search, http(s)://gist.[hostname]/search
, で言語ごとに検索できます。 Gist 検索はコード検索と同じ検索構文を使います。
Gist は Git リポジトリであるため、完全なコミット履歴を diff とともに表示させることができます。 Gist はフォークしたりクローンしたりすることもできます。 詳細は「Gist のフォークおよびクローン」を参照してください。
Gist の ZIP ファイルは、Gist の上部にある [Download ZIP] ボタンをクリックすればダウンロードできます。 Gist は blog ポストなど、JavaScript をサポートしているどのテキストフィールドにも埋め込むことができます。 埋め込みのコードを得るには、Gist の Embed URL の隣にあるクリップボードアイコンをクリックします。 特定の Gist ファイルを埋め込むには、Embed URL に?file=FILENAME
を追加します。
Gist の作成
テキストファイルをデスクトップから直接 Gist エディターにドラッグアンドドロップすることもできます。
You can also create a gist using the GitHub CLI. For more information, see "gh gist create
" in the GitHub CLI documentation.
-
GitHub AEにサインインします。
-
gist home page,
http(s)://gist.[hostname)
,に移動します。 -
Gist の名前と説明 (任意) を入力します。
-
Gist のテキストを Gist テキストボックスに入力します。
-
Optionally, to create an internal gist, click , then click Create internal gist.
-
Click Create secret Gist or Create internal gist.