在 repo 裡面跑個 git-update-server-info:
cd code/
git update-server-info
然後起個檔案伺服器:
python3 -m http.server
http.server 預設會開放給 0.0.0.0:8000
存取,開放後就可以從 http://192.168.x.y:8000/.git
去拉了:
git pull http://192.168.x.y:8000/.git
在 repo 裡面跑個 git-update-server-info:
cd code/
git update-server-info
然後起個檔案伺服器:
python3 -m http.server
http.server 預設會開放給 0.0.0.0:8000
存取,開放後就可以從 http://192.168.x.y:8000/.git
去拉了:
git pull http://192.168.x.y:8000/.git