22.1 C
Texas

How to set a git server on Windows Server 2019.

Hello, in this opportunity, we will talk about Windows Server. Specifically, about the installation of server Git. It is a version control software designed by Linus Torvalds, thinking about the efficiency and reliability of maintaining versions of applications when these have a large number of source code files. A version control system is the management of the various changes that are made on the elements of a product or a configuration of the same. This tool is very useful when developing software or a web page. Furthermore, it facilitates the work of the developers, because it allows you to update and edit their projects to improve them. On the other hand, there are free and paid options to host our projects on web servers. In general, free options have space and privacy limitations. So, here I will show you how to install a Git server on Windows Server 2019.

Prerequisites.

  • Internet Information Services (IIS) have to be installed on Windows Server. If you don’t know how to do it, please check our post.
  • Static ip address

Installing a Git server using bonobo server.

As mentioned above, there are trade options to host Git on web servers. However, it is likely that you want to save costs or may not have limitations. In addition, using Windows Server it is possible to put the server Git within the reach of your organization. For the purpose, We’ll use a software called Bonobo Git Server. It is free and open-source. With that intention, please go to the program page and download the zip file of the application. At the time of writing this article, the version is 6.5.0.

Downloading Git server 6.5.0
Downloading Git server 6.5.0

Please note that the file is compressed in ZIP format. So once downloaded, unzip it in the following path: C:\inetpub\wwwroot. This is the default local path for websites in IIS

Copy the unzipped folder into the IIS folder
Copy the unzipped folder into the IIS folder

Modify folder permissions

In order to guarantee the functioning of the program, it is highly recommended to modify the permissions of the folder. With this in mind, please place the uncompressed folder and right-click on it to enter the properties. Next, select the Security tab and then select Edit.

Enter the properties of the program folder
Enter the properties of the program folder
- Advertisement -

In the next window navigate to IIS users and grant full permission.

Gives full permission on the folder
Gives full permission on the folder

Opens IIS

After you have edited the folder permissions, please open Internet Information Services. Then follow this path: Server>Sites>Default Web Site>Bonobo.Git.Server. Then right-click on the folder and select Convert to Application.

Convert Bonobo server to an application
Convert Bonobo server to an application

In the pop-up window, there are several elements that you can modify. I recommend leaving them all as they are, and press OK to finish the process.

Options to add application
Options to add application

Configuring the Git server

To start the server, please go to the browser and type the following address: localhost/Bonobo.Git.Server

Bonobo server homepage.
Bonobo server homepage.

The default username and password is admin. Entering the credentials will skip the configuration options. The first task will be to create a user. To do this, click on the Users tab

Select the users tab
Select the users tab

Below you will see the list of users, please click on Add new user. Then enter the data of the user to register. Press Create to finish the process.

Creating a new account
Creating a new account

It is also possible to create teams. As its name indicates, it is the combination of two or more users to perform jobs. To create it, select the Teams tab. And then in Create New Team. Please assign a name and description to the team. Additionally, choose the team members, and press save to finish.

Creating a new team
Creating a new team

Now let’s create our first repository. To do this please click on Create new repository. Add the repository name, group, and description. You can also attach a logo. Likewise, set the contributors and administrators of the repository. Finally, press create and the repository will be ready.

Creating a repository
Creating a repository

At the end of the process, you can enter the description of the repository. The repository address is available for copying. It is now possible to use a git client to access it. Finally, we have seen how to establish a git server in Windows Server 2019. This option will allow sharing the repository to the clients that access the server. If you follow the described steps it is possible to configure it in our server. I hope you liked this post. Thank you very much and see you soon.

- Advertisement -
Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"

LEAVE A REPLY

Please enter your comment!
Please enter your name here



Latest article