2011年5月14日 星期六

[linux]create a --bare repo for remote server

*create a repo
# cd /home/user/git/
# mkdir test.git
# cd test.git
# git init --bare

# git clone ssh://user@host:port/~/git/test.git
....add some file
# git push origin master


*with cgit

# ln -s ~/git/test.git /var/www/htdocs/repo/test.git
$ ln -s target link

沒有留言:

張貼留言