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.
Practice questions
What is true about a secret gist?
- It is not listed or searchable, but anyone with the URL can view it
- It is encrypted and visible only to its author
- It is visible only to repository collaborators
- 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.
Which statements about gists are true?
- Public gists appear in Discover
- A secret gist can be shared by sending its URL
- A secret gist is guaranteed private
- A public gist can be converted to secret
- 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.
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.
