Tuesday, February 21, 2017

git gui and web ui

*** git gui***

- install
$ sudo apt-get install git-gui

- usage, change directory to git master directory, and execute
$ git gui


*** web ui ***

:::git-webui::::
- install
$ git clone https://github.com/alberthier/git-webui.git
$ git config --global alias.webui \!$PWD/git-webui/release/libexec/git-core/git-webui



- usage, change directory to git master directory, and execute
$ git webui



::::::cgit::::

-install and configure
$ sudo apt-get install cgit
$ sudo ln -s /etc/apache2/mods-available/cgi.load /etc/apache2/mods-enabled/cgi.load
$ sudo /etc/init.d/apache2 restart

- edit file /etc/cgitrc  as bellow

css=/cgit-css/cgit.css
logo=/cgit-css/cgit.png

# add git's repository  to cgit
repo.url=rconf
repo.path=/home/user1/project1/.git
repo.desc=the first project


- to access it use the following url
http://localhost/cgit/

::::gitweb:::

-install and configure
$ sudo apt-get install gitweb
$ sudo ln -s /etc/apache2/mods-available/cgi.load /etc/apache2/mods-enabled/cgi.load
$ sudo /etc/init.d/apache2 restart


- edit file /etc/gitweb.conf to the following content
#git directory
$projectroot = "/var/www/git";
$git_temp = "/tmp";
@diff_opts = ();


- to access it using the following command
http://localhost/gitweb/

No comments:

Post a Comment