如何在Windows上启动git守护进程 [英] How to start git daemon on Windows

查看:327
本文介绍了如何在Windows上启动git守护进程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Windows上启动git守护进程以允许其开始提供请求?看起来像msysgit应该将其安装为Windows服务或其他东西,但我没有看到它。

Git for Windows 1.7.4包含对以前版本中缺少的windows git守护进程的支持。要导出存储库,您需要在.git目录中创建一个名为git-daemon-export-ok的文件,或者包含--export-all命令行选项。

在git仓库中运行: git daemon --export-all ,然后可以从远程机器连接到它,例如: git ls-remote git:// yourmachine / path / to / repo


How do I start the git daemon on Windows in order to allow it to begin serving requests? Seems like msysgit is supposed to install it as a Windows Service or something but I don't see one.

解决方案

Git for Windows 1.7.4 includes support for git daemon on windows which was missing in previous versions. To export your repository you will need to create a file called git-daemon-export-ok in the .git directory or include the --export-all command line option.

In a git repository run:git daemon --export-all and you can then connect to it from a remote machine eg: git ls-remote git://yourmachine/path/to/repo

这篇关于如何在Windows上启动git守护进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆