Assuming your project is /home/user/project_dir/
Git server is //10.0.0.1/
and all your operatoin do on the server side.
# cd /home/user/project_dir/
# git init
# git add .
# git remote add origin ssh://10.0.0/home/user/project_dir/project_dir.git
# git commit -a -m "initial"
For using on git web :
# cd /var/private/
# ln -s /home/user/project_dir/.git project.git
# cd /pub/scm/
# ln -s /home/user/project_dir/.git project.git
All above steps and content is useful for my company environment, and not suitable for all people's.
Just FYI.