基本はここのとおりにやっていけばOK
http://www.mk-mode.com/octopress/2012/12/07/centos-construct-git-server/
途中の
$ git remote add origin ssh://masaru@vbox.mk-mode.com/var/lib/git/public_git/test.git
だけが ssh://masaru@vbox.mk-mode.com:10022/var
のようにポート番号を指定しないと自分の環境では上手く動かなかった。
参考
git remote add origin ssh://masaru@vbox.mk-mode.com/var/lib/git/public_git/test.git
http://www.mk-mode.com/octopress/2012/12/07/centos-construct-git-server/
git remote add with other ssh port - Stack Overflow
http://stackoverflow.com/questions/3596260/git-remote-add-with-other-ssh-port