Configuring LAN Git server with Gogs under Windows

Source: Internet
Author: User
Tags git client git commands

Avenue Dawn

Configuring LAN Git server with Gogs under Windows

To develop a new project in C # recently, you need to build a git server in a Windows LAN environment.

There are many scenarios for building a git server on Windows 7. Like what:

1. Gogs

2. Bamboo (https://www.atlassian.com/software/bamboo/)

3. Github for Windows + coqssh (https://github.com/msysgit/msysgit/wiki/ SETTING-UP-A-GIT-SERVER-ON-WINDOWS-USING-GIT-FOR-WINDOWS-AND-COPSSH)

Git stash is too big to be textual.

Here to choose Gogs implementation.

Platform: Win7 x64
Tools: NSSM, Gogs_v0.8.43_windows_amd64.zip, MySQL, git tools

0. Install MySQL;
1. Create the Gogs database in MySQL:
Create Database Gogs;
2. Install the Git tool. This step is to gogs the server to find Git commands. Since I've already installed the Github for Windows tool on my machine, Git also comes with the installation. If Git is not installed on your machine. You can go to download one and install it.
3. Unzip the gogs_v0.8.43_windows_amd64.zip to the target location;
4. Registration Gogs Service:
(1) Modify the Gogs/scripts/windows/install-as-service.bat to include:
SET Gogspath=c:/gogs
The path information is modified to the native Gogs installation path;
(2) Install the NSSM, and ensure that the NSSM installation path has been added to the%PATH% environment variable;
(3) Run Install-as-service.bat with administrator privileges;
5. Open the browser, enter: 127.0.1.1:3000, enter the configuration interface (I only modified the code warehouse storage path this one). When the configuration is complete, a new App.ini configuration file is generated under the gogs/custom/conf directory.
6. Register the user, log in the user. By default, the first user registered will have administrator privileges.
7. In the case of LAN, the Garvatar is not available. So it's best to set a custom avatar.
8. Install a GIT client tool on the working machine. The optional client tools with GUI are:

Sourcetree
Tortoisegit

Resources:

1. https://gogs.io/docs/installation/install_from_binary.html

2. Https://gogs.io/docs/installation/configuration_and_run

3. Https://gogs.io/docs/installation/run_as_windows_service

4. https://gogs.io/docs/advanced/configuration_cheat_sheet.html

Http://www.cnblogs.com/myd7349/p/5233694.html

Configuring LAN Git server with Gogs under Windows

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.