How to write or pack a Git server as a Java servlet or Java Webapp?

Git is clearly amazing, and many clients are affordable and easy to install on all platforms.

However, it’s a little difficult to get a Git server for commands.

I am a little surprised that there is as yet no easily deployable Java-Git application server or webapp. It seems like gitosis, gitolite, etc. - These are some of the options that run on other stacks, but if you are already using the Java stack, the easiest way is to simply deploy the Java servlet or webapp.

Along these lines, I was wondering, how can I go about writing Java 'Git Server webapp?

How far can JGit get you for a simple implementation? What needs to be done to pack JGit as a web application, to be able to click on and from it, and also easily create new repositories?

+6
source share
4 answers

Gerritt is deployed as a war file and uses JGit to provide git server functionality. In addition to the standard git server functionality, access control and code viewing are also supported.

+3
source

SCM-Manager is a Git server written in Java and using JGit .

+6
source

Gitblit is an open, integrated, clean Java Git server, viewer and repository for small workgroups. It works well on Windows and includes tools to run as a Windows service.

+4
source

The JGit library implements a Smart Http implementation called GitServlet . You can use the following configuration to embed Java-based web applications into it.

To configure Refer:

http://www.jarvana.com/jarvana/view/com/madgag/org.eclipse.jgit.http.server/0.8.3-UNOFFICIAL-HARMONY-6637-FIX/org.eclipse.jgit.http.server- 0.8.3-UNOFFICIAL-HARMONY-6637-FIX-javadoc.jar! /Org/eclipse/jgit/http/server/GitServlet.html

-1
source

Source: https://habr.com/ru/post/891291/


All Articles