====== Sitemap ====== This is a sitemap over all available pages ordered by [[doku>namespaces|namespaces]].
Page Actions
Wiki Actions
User Actions
====== Differences ====== This shows you the differences between two versions of the page.
|
guides:git [2010/12/02 22:26] fishy Created |
guides:git [2010/12/03 17:40] (current) fishy home_link_str |
||
|---|---|---|---|
| Line 306: | Line 306: | ||
| git clone http://git.example.com/test-repo.git | git clone http://git.example.com/test-repo.git | ||
| </code> | </code> | ||
| - | |||
| ===== A prettyfied web-view: gitweb ===== | ===== A prettyfied web-view: gitweb ===== | ||
| + | Install gitweb from Lenny Backports, and point it to the root of the GIT projects: | ||
| + | <code> | ||
| + | apt-get install -t lenny-backports gitweb | ||
| + | </code> | ||
| + | |||
| + | Add the following to the Apache2 VirtualHost: | ||
| + | |||
| + | <code> | ||
| + | <Directory /usr/share/gitweb> | ||
| + | Options FollowSymLinks +ExecCGI | ||
| + | AddHandler cgi-script .cgi | ||
| + | </Directory> | ||
| + | Alias /gitweb /usr/share/gitweb | ||
| + | |||
| + | ScriptAlias / /usr/share/gitweb/index.cgi/ | ||
| + | |||
| + | <Directory /var/www/git.example.com/.gitweb> | ||
| + | AllowOverride None | ||
| + | Order deny,allow | ||
| + | deny from all | ||
| + | </Directory> | ||
| + | <Location "/private"> | ||
| + | AuthType Basic | ||
| + | AuthName "Git Private" | ||
| + | AuthUserFile /var/www/git.example.com/.passdb/private_users | ||
| + | Require valid-user | ||
| + | </Location> | ||
| + | |||
| + | </code> | ||
| + | |||
| + | <code> | ||
| + | cat << EOF > /etc/gitweb.conf | ||
| + | # path to git projects (<project>.git) | ||
| + | $projectroot = "/var/www/git.example.com"; | ||
| + | |||
| + | # directory to use for temp files | ||
| + | $git_temp = "/tmp"; | ||
| + | |||
| + | # target of the home link on top of all pages | ||
| + | #$home_link = $my_uri || "/"; | ||
| + | |||
| + | # html text to include at home page | ||
| + | # $home_text = "indextext.html"; | ||
| + | $home_text = "/var/www/git.example.com/.gitweb/index.inc"; | ||
| + | |||
| + | # The text on the home link in the breadcrumbs | ||
| + | $home_link_str = "git.example.com"; | ||
| + | |||
| + | # file with project list | ||
| + | $projects_list = "/var/www/git.example.com/.gitweb/list"; | ||
| + | |||
| + | # Hide any repo not listed in the $projects_list | ||
| + | $strict_export = 1; | ||
| + | |||
| + | # stylesheet to use | ||
| + | $stylesheet = "/gitweb/gitweb.css"; | ||
| + | |||
| + | # logo to use | ||
| + | $logo = "/gitweb/git-logo.png"; | ||
| + | |||
| + | # the 'favicon' | ||
| + | $favicon = "/gitweb/git-favicon.png"; | ||
| + | EOF | ||
| + | |||
| + | echo "Example text" > /var/www/git.example.com/.gitweb/index.inc | ||
| + | ls | grep -v private | awk ' { print $1 " Me" }' > /var/www/git.example.com/.gitweb/list | ||
| + | </code> | ||
| ===== Everyday use of git ===== | ===== Everyday use of git ===== | ||
| Line 320: | Line 386: | ||
| http://www.espace.com.eg/blog/2010/11/10/migrating-from-subversion-to-git/ | http://www.espace.com.eg/blog/2010/11/10/migrating-from-subversion-to-git/ | ||
| http://www.kernel.org/pub/software/scm/git/docs/git-http-backend.html | http://www.kernel.org/pub/software/scm/git/docs/git-http-backend.html | ||
| - | |||