1. 安装git ,使用不再赘
  2. 在文件夹repo 中执行git init新建git仓库
  3. 在 repo目录下执行git config --local receive.denyCurrentBranch updateInstead
  4. 执行git config --global sendpack.sideband false
  5. 在repo的上级目录中执行git daemon --reuseaddr --base-path=. --export-all --verbose --enable=receive-pack开启服务器
  6. 在新建文件夹中git clone git://127.0.0.1/repopush此时也可用

版权声明:本文为guiqulaxi920原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
原文链接:https://blog.csdn.net/guiqulaxi920/article/details/84642312