Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between GitHub and gist?

What is the purpose of gist and how is it different from regular code sharing/maintaining using GitHub?

enter image description here

like image 409
NSExplorer Avatar asked Jul 20 '11 19:07

NSExplorer


People also ask

What is the difference between gist and repository?

Gist is a simple way to share snippets and pastes with others. Whereas Repo is simply a place where the history of your work is stored.

What is gist for GitHub?

What is Gist? Gist is an easy method to share snippets or excerpts of data with others. A gist can be a string of code, a bash script or some other small piece of data. These bits of information are hosted by GitHub as a repository.

What is the main difference between Git and GitHub?

what's the difference? Simply put, Git is a version control system that lets you manage and keep track of your source code history. GitHub is a cloud-based hosting service that lets you manage Git repositories. If you have open-source projects that use Git, then GitHub is designed to help you better manage them.


2 Answers

GitHub is the entire site. Gists are a particular service offered on that site, namely code snippets akin to pastebin. However, everything is driven by git revision control, so gists also have complete revision histories.

like image 131
Kerrek SB Avatar answered Oct 11 '22 17:10

Kerrek SB


My Personal View of Gist and GitHub:

Gist: Gist is a simple way to share code snippets and pastes with others. It is used when you need to share a sample piece of code or technique with your co-workers or friends.

And

GitHub GitHub, on the other hand, provides a platform to share an entire project as a repo among a team(private repo) or to the whole world(public repo).

Both Will log version details.

like image 31
Jayavignesh Vicky Avatar answered Oct 11 '22 17:10

Jayavignesh Vicky