CIOC
CIOC

Reputation: 1427

How to install GitWeb on Windows?

I'm trying to use GitWeb to explore my repositories, I'm completely new to it, so I'm having a little problems, I know that GitWeb is shipped with Git, I downloaded it from here http://code.google.com/p/msysgit/downloads/list?q=full+installer+official+git, it is located on \share\gitweb, then I opened the console (Git Bash), browsed to the repository and ran the command git instaweb, but it says git: 'instaweb' is not a git command.

Anyone know what is the right way to install and configure GitWeb?

I already read a lot of tutorials, but they are so confusing :/

Any help will be appreciated, thanks.

Upvotes: 5

Views: 10565

Answers (7)

zwhconst
zwhconst

Reputation: 1523

As in here:

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

Upvotes: 1

VonC
VonC

Reputation: 1328232

4 years later (2018), gitweb is definitively removed from Git for Windows:

See Git for Windows 2.19.0 (Sept. 2018):

The gitweb component was removed because it is highly unlikely to be used on Windows.

See git-for-windows/git issue 1362

Git for Windows is intended to be used by end users. GitWeb, however, wants to be used in conjunction with a web server such as Apache, and even requires a Perl module to be installed in that web server.

It is almost guaranteed that nobody uses Git for Windows that way, so let's just exclude those files from the installer.

Upvotes: 0

VonC
VonC

Reputation: 1328232

An alternative to Gogs (mentioned in this answer) is gitea.io.

Gogs is developed by one maintainer (@Unknwon).
Gitea is developed more collaboratively.

Gitea releases are more regular than Gogs releases, and its feature set is more complete.

gitea

Upvotes: 2

Mikhail Aksenov
Mikhail Aksenov

Reputation: 934

I tried different versions of "local github" and found the most beautiful solution in Windows for me: Gogs https://gogs.io/ (demo)

Easy install - you need only Git Version >= 1.7.1 for both server and client sides. And it allows do pull requests!

Just to give an idea how it looks like in the browser:

enter image description here

Upvotes: 1

alberthier
alberthier

Reputation: 653

Maybe this extension could help you :

https://github.com/alberthier/git-webui

It should work on Windows if you have Python installed

Upvotes: 6

itefix
itefix

Reputation: 76

Gitwin supports Gitweb in FastCGI mode via a built-in Nginx server.

NB! Disclaimer - product edition only.

Upvotes: 0

Bohr
Bohr

Reputation: 1736

git instaweb is not currently supported on windows by 'msysgit'.

See this issue which is still not resolved.

Upvotes: 2

Related Questions