What is GitHub?

GitHub provides a platform to create and share repositories, which can be cloned based on whom it is shared with.

  • Private Repository (can be shared only with a specific set of users or teams on GitHub)
  • Public Repository (can be accessed by anyone)

What is Gist?

Gist provides a platform to create and share code snippets, a piece of logic or technique, which can also be cloned based on with whom it is shared.

  • Private Gist (can be shared only with a specific set of users or teams on GitHub)
  • Public Gist (can be accessed by anyone)

GitHub Vs Gist

In Common

  • Both GitHub repositories and Gist code snippets can be shared and cloned with version control.

Differences

  • GitHub repositories cannot be embedded into an HTML document, whereas Gist code snippets can be embedded into an HTML document.

Overall

We now know the basic differences between GitHub and Gist.