windows - 如何在 Windows 上运行 Git 服务器?

标签 windows git

如何在 Windows 上共享 Git 存储库? “正确”的方法似乎是运行“git-daemon”(特定于 unix)或运行 ssh(特定于 unix)或运行 Git 的 http 前端。如果我只有两个 Windows 机器并且不想安装 Unix 只是为了运行 Git,那么在两个机器之间共享存储库的最佳方式是什么?

最佳答案

如果两台机器在同一个 LAN 中,您可以将 repo 放在通过常规 Windows 网络协议(protocol) (SMB) 共享的目录中。

(免责声明:我不确定 SMB 的锁定语义,所以可能是同时写入存储库可能会破坏它。然后,同样的情况可能适用于 Unix。)

关于windows - 如何在 Windows 上运行 Git 服务器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13112718/

相关文章:

git - 使用 develop 分支 Git 流程开发模型应用修补程序时,如何避免 Git 中的重复提交?

git 冲突 : diff between BASE version and OTHER version

git - 保持 fork 最新的最有效方法

windows - 如何说服 Visual Studio 通过 TCP/IP 使用 ADB for android dev

php - 将 Docker 容器连接到远程 MySQL 数据库

windows - powershell 脚本中的程序集

c++ - 在 Windows 上在 SIZE_T 和 void* 之间转换

Git 克隆 : Permission denied (publickey). 致命:无法从远程存储库读取

c# - 窗口服务的问题

Git 推送 : set target for branch