What’s the difference between the remote Github repository and the remote one on my dedicated server?

Asked

Viewed 434 times

2

On Github we can create remote repositories, and when we do we gain a certain set of administrative functionalities under this repository, one of these functionalities is the administrator’s ability to review the commits received, review them and decide whether to apply them to the project or not (among others).

There is the possibility to create a remote repository on a dedicated linux server. My question is whether by doing so I gain the same features offered by Github (such as the one mentioned, for example).

In practice what are the differences between both remote repositories?

2 answers

5


Generally speaking, you don’t get these features. Don’t confuse Git with Github. On your server you only have Git, you don’t have anything that Github has. Nothing prevents you from adding functionality to your server. What you will install or do at hand to have them is your problem.

Note that you can even have your server chat with Github. Git repositories are not distinguished in client and server except by access configuration.

Some people like to use Gitlab on their own server, but there are other solutions. Now I answered that.

  • So in essence a dedicated remote repository is the same as the repository on Github, but Github offers a more robust feature layer under this repository, whereas the remote repository on my dedicated repository does not have this feature layer. This is the idea ?

  • The repository is identical, is like a C++ compiler, compiles any program in C++ equal, changes if you are using in Visual Studio, Eclipse, Code::Blocks, Clion, Vim with GCC, Xcode with Clang, etc., but the base is standard.

  • Thanks for the clarifications friend, excellent explanation. And thank you also for sharing the link of your previous answer, was of great help.

1

No, it doesn’t. Github is a website. Git is a tool.

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

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

Basically, many of the basic and useful features that Github shows you in their layout you can access from your machine’s console 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 it to a specific commit or file.

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

git checkout nomedobranch: changes the current branch of work.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.