Reski's hobbies blog place…

This is not just about me, but also bout my family
February 12th, 2012 by ayah

Initialize Your First Git Repository

After you installing your own git server (http://hobby.keluargareski.net/2012/02/11/how-to-install-git-on-centos-5-6/), dont forget to create your first step for GIT repository

On Remote Sides

mkdir my_project.git
cd my_project.git
git --bare init

On Client Sides

mkdir my_project
cd my_project
touch .gitignore
git init
git add .
git commit -m "Initial commit"
git remote add origin youruser@yourserver.com:/path/to/my_project.git
git push origin master

And Congratulations, now you have your own git server