Every gist is a Git repository, which means that it can be forked and cloned. 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 主页
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. They're also searchable, so you can use them if you'd like other people to find and see your work.
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. If you need to keep your code away from prying eyes, you may want to create a private repository instead.
在创建 Gist 后，不可将其从内部转换为机密。
You'll receive a notification when:
- You are the author of a gist.
- Someone mentions you in a gist.
- You subscribe to a gist, by clicking Subscribe at the top any gist.
You can discover internal gists others have created by going to the gist 主页
http(s)://gist.[hostname)， and clicking All Gists. This will take you to a page of all gists sorted and displayed by time of creation or update. You can also search gists by language with Gist 搜索
http(s)://gist.[hostname]/search，. Gist search uses the same search syntax as code search.
Since gists are Git repositories, you can view their full commit history, complete with diffs. You can also fork or clone gists. For more information, see "Forking and cloning gists".
You can also drag and drop a text file from your desktop directly into the gist editor.
You can also create a gist using the GitHub CLI. For more information, see "
gh gist create" in the GitHub CLI documentation.
Sign in to GitHub AE.
Navigate to your gist 主页
Type an optional description and name for your gist.
Type the text of your gist into the gist text box.
Optionally, to create an internal gist, click , then click Create internal gist.
Click Create secret Gist or Create internal gist.