简体   繁体   English

将 git 上游设置到 windows 服务器

[英]Setting git upstream to a windows server

I am junior in a small business trying to setup a Git server for a team of 3 programmers.我是一家小型企业的初级人员,试图为 3 名程序员团队设置 Git 服务器。

They want the code to be visible in a folder and easily accessible and finally hosted on a Windows server.他们希望代码在文件夹中可见并且易于访问,并最终托管在 Windows 服务器上。
Hence they want to stay away from solutions like gitea or bonobo.因此,他们希望远离像 gitea 或 bonobo 这样的解决方案。

Here is a link of what I'm trying to accomplish, but on windows.这是我正在尝试完成的链接,但在 windows 上。 Setting up git server on linux . 在 linux 上设置 git 服务器

A Gitea server remains the simplest setup (one database+one gitea executable, and you are good to go, even on Windows) Gitea 服务器仍然是最简单的设置(一个数据库 + 一个gitea可执行文件,您对 go 很好,即使在 Windows 上也是如此)

You can then associate to your Gitea-hosted repository a post-receive hook that will checkout said repository to a local folder on your server, in a shared and accessible directory, if your Gitea server is directly on Windows.然后,如果您的 Gitea 服务器直接位于 Windows 上,您可以将接收后挂钩与您的 Gitea 托管存储库相关联,该挂钩会将所述存储库检出到您服务器上的本地文件夹中,位于共享且可访问的目录中。

Or the same post-receive hook can create an archive , and scp it to a Windows server (if you used a Linux server, assuming an openSSH daemon is set on Windows side, or an UNC shared folder is available), and uncompress said archive in the deployment folder.或者同一个 post-receive 钩子可以创建一个存档,并将其 scp 到 Windows 服务器(如果您使用的是 Linux 服务器,假设在 ZAEA23489CE3AA9B6406EBB28EZUNCDA 上设置了一个 openSSH 守护程序)和可用的存档文件夹,解压缩该存档共享文件夹。在部署文件夹中。

But the idea remains: a hook can take care of the "visible in a folder and easily accessible".但是这个想法仍然存在:钩子可以处理“在文件夹中可见且易于访问”。

SCM Manager can be the easiest way to get managed Git-server for any OS (Windows too)SCM Manager是为任何操作系统(Windows 也是)获取托管 Git 服务器的最简单方法

the code to be visible in a folder and easily accessible代码在文件夹中可见并且易于访问

This statement has to be rewritten, if you want to have more definitive answers如果您想获得更明确的答案,则必须重写此声明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM