LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-02-2009, 01:17 AM   #1
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,466
Blog Entries: 6

Rep: Reputation: 51
Issue during GIT?


I am newbie to git.I heard experts saying Git more powerful than SVN.
So I thought to give it a try.
I Downloaded git package and installed it successfully
I had a project called PRO which was in SVN. I checkout the same AND now I have number of files under /opt/gitproject/PRO directory.

I went into :

Code:
cd /opt/gitproject
git init-db
git add PRO
git commit -m "A New GIT project"
git tag v1.1
This added the complete project into PRO git project.
Now I installed ViewGit software on my Windows Machine.I am using putty to connect to remote Linux machine running git.
I downloaded the viewgit and place git under /var/www/html/ directory.
I opened viewgit/inc/ directory and created the localconfig.php file as directed.
File: localconfig.php
Code:
<?php
/** @file
 * Example localconfig.php. See config.php for more information.
 */

// This is the only mandatory setting
$conf['projects'] = array(
        'GiT' => array('repo' => '/opt/gitproject/.git'),
);

// A bit sorter datetime format: YY-MM-DD HH:MM
$conf['datetime'] = '%y-%m-%d %H:%M';

// Extra security
$conf['allow_checkout'] = false;
as instructed by the Doc/INSTALL file.
I also edited :
File: .htaccess under doc directory as:
Code:
Options -Indexes
php_flag register_globals off
php_flag magic_quotes_gpc off

RewriteEngine On
RewriteBase /var/www/html/viewgit/
RewriteRule ^([^.]*).git/(.*)   ?a=co&p=$1&r=$2
~
Above the RewriteBase has been changed to my viewgit path

Restarted the Apache.

Now I can easily browse the git through:
http://<IP>/viewgit/index.php

But What I am facing the problem is I can see the earlier test foo project and not my Repository called PRO.

Pls Help
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using GIT vkmgeek Linux - General 1 12-25-2008 04:48 PM
inconsistency issue of git-clone ***/git/mesa/drm with the existing kernel source centguy Linux - Desktop 2 10-08-2008 10:36 PM
git vkmgeek Linux - Newbie 2 06-19-2008 09:11 AM
Issue while installing GIT on Linux ?? ajeetraina Linux - Server 3 08-31-2007 12:24 AM
KMail is a git acid_kewpie Linux - General 0 09-15-2001 01:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration