Use Bonobo Git Server to build a Git server in Windows 2019

1. Prepare the software package

Git client : https://git-scm.com/downloads

                For convenience, you can download another GUI: I selected it here, but others are also available. Sourcetree, download address: https://www.sourcetreeapp.com  
Git server : Bonobo Git Server, download address: https://bonobogitserver.com

2. Install the IIS service environment

If you have installed it before, please ignore...

Add role functionality

Choose to install the IIS service

After the next step, choose to install .net framework 4.7 and the capable web core. After selecting, click Install. It will take a while to install.

Register .Net Framework for IIS, run cmd with administrator rights, and execute the following command:

dism /online /enable-feature /featurename:IIS-ASPNET45 /all

3. Configure the website

Unzip the downloaded Bonobo Git Server package and put it in a directory. I put it in the root directory of the d drive. For convenience, the directory name is git.

Start-->Windows Administrative Tools-->Open IIS Manager

Stop the default website first

Right click on the website-->Add website

Fill in the website name, select the physical path you just decompressed, and leave the rest as default.

In the local browser, enter localhost to open it. In other computers, enter the server IP address to open it.

The initial username and password are both admin

After entering, you can set it to Chinese in the setting. Um. It’s still comfortable to read Chinese.

4. Client installation

Git installation is simple, just follow the next step

Sourcetree skips registration

If you are not familiar with the git command line at the beginning, you can try to use sourcetree for operation. Sourcetree is a good Git client, but it requires registration during installation, which is a bit troublesome. 
When you are prompted to register during installation, you 
will skip registration and start 
. Put the following string into the address bar of my computer and open the sourcetree folder.

%LocalAppData%\Atlassian\SourceTree\ 
Next, you should create a json file in the current folder, named accounts.json. 
Then, edit the content of this file as follows

[
  {
    "$id": "1",
    "$type": "SourceTree.Api.Host.Identity.Model.IdentityAccount, SourceTree.Api.Host.Identity",
    "Authenticate": true,
    "HostInstance": {
      "$id": "2",
      "$type": "SourceTree.Host.Atlassianaccount.AtlassianAccountInstance, SourceTree.Host.AtlassianAccount",
      "Host": {
        "$id": "3",
        "$type": "SourceTree.Host.Atlassianaccount.AtlassianAccountHost, SourceTree.Host.AtlassianAccount",
        "Id": "atlassian account"
      },
      "BaseUrl": "https://id.atlassian.com/"
    },
    "Credentials": {
      "$id": "4",
      "$type": "SourceTree.Model.BasicAuthCredentials, SourceTree.Api.Account",
      "Username": "",
      "Email": null
    },
    "IsDefault": false
  }
]

Save this file.

Restart sourcetree, well, the interface is different from before, no registration is required, that's it, sourcetree has skipped the registration link.

 

Guess you like

Origin blog.csdn.net/llq_the7/article/details/109228620