Git instaweb on windows? got a error

一曲冷凌霜 提交于 2019-12-11 05:19:43

问题


Is it possible to use instaweb on windows?

I have a bare repository at D:/myrepo and I want to use instaweb to see it like this

I have tried this command

git instaweb --httpd=webrick

But I got this error

git: 'instaweb' is not a git command. See 'git --help'.

Thanks in advance.


回答1:


The instaweb command is not yet supported for Windows as of version 1.9.0. It's listed under 'Known issues' in the Windows release notes:

Known issues

• Some commands are not yet supported on Windows and excluded from the installation; namely: git archimport, git cvsexportcommit, git cvsimport, git cvsserver, git instaweb, git shell.




回答2:


I got it working using git in MSYS2:

  1. Install MSYS2
  2. Install git:

    pacman -S git

  3. Install ruby (webrick is part of Ruby standard library):

    pacman -S ruby

  4. You may need to install the CGI.pm perl module using CPAN

  5. And go:

    git instaweb -d webrick



来源:https://stackoverflow.com/questions/19868433/git-instaweb-on-windows-got-a-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!