Your ads will be inserted here by

Easy Plugin for AdSense.

Please go to the plugin admin page to
Paste your ad code OR
Suppress this ad slot.

Install git with Yum

yum install git-core
cd /path/to/repo
mkdir newProject
cd newProject

git --bare init

chown -R apache:apache /path/to/repo
cd /path/torepo/newProject/hooks
mv /path/torepo/newProject/hooks/post-update.sample /path/torepo/newProject/hooks/post-update
Enable the post-update hook: chmod +x /path/torepo/newProject/hooks/post-update

cd /path/to/repo/newProject
git update-server-info

Now you must ensure Your permision i would again run

chown -R apache:apache /path/to/repo

Otherwise you would get error such as, curl=22 HTTP 401, 403,
this could also be due to permission issue ensure, Ur username and password,

Last but the most importantly see your log file which always provides best information.

Log: Apache log for git.

How to configure Apache config file.