Skip to content

Instantly share code, notes, and snippets.

@tylearymf
Last active February 7, 2021 10:11
Show Gist options
  • Select an option

  • Save tylearymf/a96dd2ef4e4e0cf72e5b0d60e618993e to your computer and use it in GitHub Desktop.

Select an option

Save tylearymf/a96dd2ef4e4e0cf72e5b0d60e618993e to your computer and use it in GitHub Desktop.
本地Git共享仓库
批处理命令:
@echo off
git config --global sendpack.sideband false
git config --global receive.denyCurrentBranch ignore
git daemon --reuseaddr --base-path=. --export-all --verbose --enable=receive-pack
使用流程:
运行命令后,共享当前目录的所有git工程给局域网内的其他电脑使用
其他电脑clone路径为 git://电脑ip/git仓库名
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment