From e81076bd268a8ba66686c1e041ad4dbc89adfe8b Mon Sep 17 00:00:00 2001 From: Rafal Chmiel Date: Mon, 14 Apr 2014 20:13:52 +0100 Subject: [PATCH] Add section about Git's instaweb command, thanks to @jdkanani :heart: --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 3821e1f..eb15621 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,7 @@ A collection of cool hidden and not so hidden features of Git and GitHub. This c - [Styled Git Log](#styled-git-log) - [Git Query](#git-query) - [Merged Branches](#merged-branches) + - [Web Server for Browsing Local Repositories](#web-server-for-browsing-local-repositories) - [Git Configurations](#git-configurations) - [Aliases](#aliases) - [Auto-Correct](#auto-correct) @@ -506,6 +507,19 @@ Will give you a list of branches that have not been merged into your current bra [*Read more about the Git `branch` command.*](http://git-scm.com/docs/git-branch) +### Web Server for Browsing Local Repositories +Use the Git `instaweb` command to instantly browse your working repository in `gitweb`. This command is a simple script to set up `gitweb` and a web server for browsing the local repository. + +```bash +$ git instaweb +``` + +Opens: + +![Git instaweb](http://i.imgur.com/Dxekmqc.png) + +[*Read more about the Git `instaweb` command.*](http://git-scm.com/docs/git-instaweb) + ### Git Configurations Your `.gitconfig` file contains all your Git configurations.