WebGit
An in-browser Git GUI for your Rails project.
WebGit is an embeddable Sinatra app that provides an in-browser visual interface to a simple but effective Git workflow. For educational purposes.
Installation
Add this line to your application's Gemfile:
gem "web_git", git: "https://github.com/firstdraft/web_git"
And then execute the following command in a Terminal:
bundle install
In the directory of your Rails app run:
rails generate web_git:install
Then rails server
and visit /git
.
Usage
In your Rails app
# config.ru
# This file is used by Rack-based servers to start the application.
require_relative 'config/environment'
map '/git' do
run WebGit::Server
end
map '/' do
run Rails.application
end
License
The gem is available as open source under the terms of the MIT License.