5

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.

robinst
  • 30,027
  • 10
  • 102
  • 108
CIOC
  • 1,385
  • 3
  • 19
  • 48

7 Answers7

6

Maybe this extension could help you :

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

It should work on Windows if you have Python installed

alberthier
  • 643
  • 1
  • 7
  • 9
2

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

See this issue which is still not resolved.

Bohr
  • 1,566
  • 1
  • 16
  • 21
2

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

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • +1 for Gitea. It is like a (small) github on your server. Allows to manage organizations, teams, pull requests, security. – Daniele Teti Jun 02 '21 at 21:25
1

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

Sevenate
  • 6,221
  • 3
  • 49
  • 75
Mikhail Aksenov
  • 944
  • 9
  • 23
  • 1
    Just confirming that I've been through same tears and pain and as of now (2018-04-18) **Gogs** is the best (if not only) viable and reliable solution for locally hosted git repo on Windows. – Sevenate Apr 18 '18 at 20:56
1

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

zwhconst
  • 1,352
  • 9
  • 19
0

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

NB! Disclaimer - product edition only.

itefix
  • 66
  • 4
0

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.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250