Hosting your Git Repositories
Goals
- Learn how to setup git server for sharing repositories.
There are many ways to share git repositories over the network. Here is a quick and dirty way.
Start up the git server
Execute:
# (From the work directory)
git daemon --verbose --export-all --base-path=.
Now, in a separate terminal window, go to your work directory
Execute:
# (From the work directory)
git clone git://localhost/hello.git network_hello
cd network_hello
ls
You should see a copy of hello project.
Pushing to the Git Daemon
If you want to push to the git daemon repository, add --enable=receive-pack
to the git daemon command. Be careful because there is no authentication on this server, anyone could push to your repository.
当前内容版权归 gitimmersion 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 gitimmersion .