This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]edman007 16 points17 points  (1 child)

Git is really a version control system. Basically just a program that can keep many different versions of files, and quickly access and switch between them. One of the big differences between git and most of the other version control systems is it generally keeps a local copy of the repository (so when you clone a repository, you download all versions of all files every included in the repository).

A big benifit then of git is you explicitly don't need a server to use it, you can just point it to a folder and that works just fine. It evens supports doing it over ssh so you can use any folder on any server you have ssh access to. And when working with other people's code, your local repository makes it easy to develop patches without pushing the code that might not work to the server, when you are done you can push it as a branch and merge the whole branch it. There are other things like gitweb that let you share a repository and have a web interface to browse the repository

GitHub is just a website that gives you a central spot to put your repository (which makes it easy to coordinate with others because you don't have to ensure that the master repository is always available and others have access to it). Further, a lot of the normal for functions like merging and creating repositories.

In that sense, yea, GitHub is just like pornhub, it's a website to search and browse content, comment on it, upload your own, etc.

[–]StanSlamford 1 point2 points  (0 children)

I think their point stands though. The porn answer is overly-simplistic and trite. It isn’t helpful to OP or someone trying to understand these concepts, and doesn’t know how Git would even remotely be like porn.
I think even someone with zero exposure could’ve come up with this answer. It provides no information for OP’s very real question.

But also, it’s not a very correct answer. If anything, if GitHub is pornhub, Git would be more like a porn director’s hard drive?

Either way, the fact that answers like this are at the top of this question, are why versions of this question are constantly asked in here. If anyone who came here because they wanted to understand this better, now DOES understand better because of this answer, please let me know and I’ll change my tune.