$ mkdir Andcp_K29
$ cd Andcp_K29
$ git-init-db
Modify .git/info/exclude
$ echo "*.[oa]" >> exclude
$ echo ".svn" >> exclude
$ echo ".repo" >> exclude
Add files to repository
$ git add .
$ git commit -m "Initial repo for example"
Create a public repository
$ mkdir /var/www/html/Andcp_K29.git
$ GIT_DIR=Andcp_K29.git git-init-db
$ git push
$ git-daemon --verbose --export-all --enable=receive-pack --base-path=/var/www/html/git &
Run Test
$ git clone git://127.0.0.1/Andcp_K29.git
OK!
没有评论:
发表评论