Bitzu

GH-900 ยท Collaboration tools

When do you use a gist and when a wiki?

Gists for sharing snippets (public and secret), repository wikis for documentation, and when to pick each.

Key points

  • A gist shares a snippet or a few files quickly, public or secret, without a full repository.
  • A repository wiki holds longer, multi-page documentation for a project, written in Markdown and edited by people with write access by default.
  • Secret gists are unlisted, not private.

Source: https://docs.github.com/en/get-started/writing-on-github/editing-and-sharing-content-with-gists/creating-gists

Practice questions

Single choice

What is true about a secret gist?

  1. It is not listed or searchable, but anyone with the URL can view it
  2. It is encrypted and visible only to its author
  3. It is visible only to repository collaborators
  4. It is deleted automatically after 30 days
Show answer

Answer: A. It is not listed or searchable, but anyone with the URL can view it

Secret gists are unlisted but not private. Anyone with the link can open them.

Select all that apply

Which statements about gists are true?

  1. Public gists appear in Discover
  2. A secret gist can be shared by sending its URL
  3. A secret gist is guaranteed private
  4. A public gist can be converted to secret
  5. A secret gist can be made public by editing it
Show answer

Answer: A. Public gists appear in Discover, B. A secret gist can be shared by sending its URL, E. A secret gist can be made public by editing it

Public gists are discoverable, secret ones are shareable by URL and can be made public. They are not guaranteed private and public ones cannot become secret.

True or false

A secret gist is private: only its author can open it.

Show answer

Answer: False

False. Secret gists are only unlisted. Anyone who has the URL can view them.

Practice 8 questions on this topic in Bitzu

Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.

Download on the App StoreGet it on Google Play

More GH-900 topics in this module