Last active
February 7, 2021 10:11
-
-
Save tylearymf/a96dd2ef4e4e0cf72e5b0d60e618993e to your computer and use it in GitHub Desktop.
本地Git共享仓库
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 批处理命令: | |
| @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