问题
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:
- Install MSYS2
Install git:
pacman -S git
Install ruby (webrick is part of Ruby standard library):
pacman -S ruby
You may need to install the CGI.pm perl module using CPAN
And go:
git instaweb -d webrick
来源:https://stackoverflow.com/questions/19868433/git-instaweb-on-windows-got-a-error