Just a couple of words.
Previous use of Gitblit in Windows to build a git server, also very good, may be installed a little bit more trouble. Now the full use of gogs in Windows to build a git server, mainly because the interface looks good, more management.
Gogs Features
- Easy to install
- Cross-platform
- Lightweight
STP 1
- Website Description: https://gogs.io/
- Download Choose your own PC, Windows AMD64 (64-bit) or 386 (32-bit)
- Download Link: https://dl.gogs.io/
STP 2
- database, I use the Mysql here, no can install themselves, or all use other databases, you can see the official introduction.
- Step is omitted.
STP 3
- Download NSSM, this is used to register the service, not every time to start, later use.
- Download Link: http://nssm.cc/download
STP 4
- Extract the downloaded Gogs compressed files to the directory you want to install.
- Add two folders under the Gogs folder (custom and log)
- The custom folder adds a new conf directory, a new App.ini file in the Conf directory, and then writes App.ini
- Log folder to add the Gogs.log file
- Set permissions on the log folder
STP 5
Execute SQL statement CREATE database
DROP DATABASE IF EXISTS gogs;CREATE DATABASE IF NOT EXISTS gogs CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
STP 6
- Go to the Gogs folder directory, press SHIFT, click CMD, do not turn off cmd.
- Input ( gogs.exe Web ) Start Gogs installation
- Enter Http://localhost:3000/install in the browser address bar to see the first run of the installer
- Setting up the Setup program
- Register an account to manage and create warehouses, the first user to acquiesce to administrator rights.
Note: My side of the installation is successful, the related page will not appear, there is a reference page.
Http://baijiahao.baidu.com/s?id=1582078449743656559&wfr=spider&for=pc
STP 7
- Go to the NSSM folder directory, press SHIFT, and click cmd Processing.
- Enter ( NSSM install Gogs ) to run, a box will pop up and then follow the steps below to set it up.
Https://gogs.io/docs/installation/run_as_windows_service#use-nssm
- LAN access authentication (configuration files can be changed to IP access)
STP 7
- Download git client use, Link: https://git-scm.com/downloads
- Not accustomed to command, can also install Tortoisegit, Link: https://tortoisegit.org/download/
- You can also download the corresponding Tortoisegit language pack.
Summarize
The entire process down, one hours is done, if it is an external network server, you need to configure the domain name. The main is the new company with the SVN, with the uncomfortable, all transplanted to git above, and get to new skills, this is very comfortable.
Windows uses Gogs to build a Git server