LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Issue during GIT? (http://www.linuxquestions.org/questions/linux-newbie-8/issue-during-git-701559/)

your_shadow03 02-02-2009 02:17 AM

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


All times are GMT -5. The time now is 07:05 PM.