Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

What's the difference between a git repository and a gist repository?


Asked by Bo Buckley on Dec 10, 2021 Git



Github: A hosting service that houses a web-based git repository. It includes all the fucntionality of git with additional features added in. Gist: Is an additional feature added to github to allow the sharing of code snippets, notes, to do lists and more.
Accordingly,
What is a GIT Repository? Repositories in GIT contain a collection of files of various different versions of a Project. These files are imported from the repository into the local server of the user for further updations and modifications in the content of the file.
Consequently, GitHub Gists. Whereas, an official, full GitHub repo is a full blown repository of source code src, supporting documents ( markdown or html, or both ) docs or root, images png, ico, svg, and a config.sys file for running Yaml variables hosted on a Jekyll server.
In respect to this,
Git is the magic sauce that allows you to track and host versions of files on Github. In other words, you use commands of Git to track versions of your files. And Github is just a remote platform where these files are hosted.
Additionally,
Of course you can compare arbitrary versions, not only HEADs. Note that if repo_a and repo_b are the same repository, it might make more sense to put both of them in the same repository, either using " git remote add -f ... " to create nickname (s) for repository for repeated updates, or obe off " git fetch ... "; as described in other responses.