What is the difference between the remote GitHub repository and the remote of my dedicated server?

2

In GitHub we can create remote repositories, and in doing so we gain a certain set of administrative functions under this repository, one of these functionalities is the possibility for the administrator to review the commits received, to review them and to decide by apply them to the project or not (among others).

You can create a remote repository on a dedicated linux server. My question is if doing so I get the same functionality offered by GitHub (such as the one cited, for example).

In practice what are the differences between the two remote repositories?

    
asked by anonymous 04.08.2018 / 03:22

2 answers

5

Generally speaking, you do not get these features. Do not confuse Git with GitHub. On your server you only have Git, there is nothing that GitHub has. Nothing prevents you from adding functionality to your server. What you will install or do on hand to have them is your problem.

Note that you can even have your server talk to GitHub. Git repositories do not distinguish between client and server, except for the access configuration.

Some people like to use GitLab on their own server, but have other solutions. I've already replied .

    
04.08.2018 / 03:29
1

No, it does not. Github is a site. Git is a tool.

Github simply uses a backend to read information from the Git repository and shows it nicely for you.

If you use VS Code or Visual Studio, you will see that they also use a custom layout to display Git information. That is, it is a specific implementation of who uses it.

Basically, many of the basic and useful features that Github shows you in their layout you can access from the console of your machine by running Git commands.

Examples:

git ls-files : shows all files included in your repository. Ignored things are not listed.

git diff : shows the difference between file versions. If you specify more parameters, you can compare them to a specific commit or file.

git status : shows the files changed, included or deleted, in relation to the last commit.

git checkout nomedobranch : changes the current work branch.

    
08.08.2018 / 12:53