- 在文件夹repo中执行git init新建git仓库
- 在 repo目录下执行git config --local receive.denyCurrentBranch updateInstead
- 执行git config --global sendpack.sideband false
- 在repo的上级目录中执行git daemon --reuseaddr --base-path=. --export-all --verbose --enable=receive-pack开启服务器,保持开启不要关闭。
- 在新建文件夹中git clone git://127.0.0.1/repo,push此时也可用
- git clone git://192.168.*/repo
- git pull git://19168.1.*/repo
- git push git://192.168.1.*/repo
- 添加所有文件:git add .(点也要)【git add .】
- 提交文件:git commit -m "test"
使用git Daemon搭建本地服务进行代码更新
最新推荐文章于 2026-06-20 11:13:01 发布
2272

被折叠的 条评论
为什么被折叠?



