简体   繁体   中英

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.

They want the code to be visible in a folder and easily accessible and finally hosted on a Windows server.
Hence they want to stay away from solutions like gitea or bonobo.

Here is a link of what I'm trying to accomplish, but on windows. Setting up git server on linux .

A Gitea server remains the simplest setup (one database+one gitea executable, and you are good to go, even on 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.

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.

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)

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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