【問題描述】
如題所示,本來好好的,可以直接根據預設好的鏈接克隆倉庫,但是,突然報錯。
git clone https://lily@192.168.20.198/a/nCloud/center1/MyCenter &&
(cd MyCenter && curl -kLo `git rev-parse --git-dir`/hooks/commit-msg https://lily@192.168.20.198/tools/hooks/commit-msg; chmod +x `git rev-parse --git-dir`/hooks/commit-msg)
報錯內容:fatal: remote error: Service not enabled
【嘗試過的方案】
1、修改用戶的分支權限
2、去掉hook相關代碼,只用以下地址
git clone https://lily@192.168.20.198/a/nCloud/center1/MyCenter
3、測試其他的倉庫
4、檢查git的配置
git config -l
【解決方案】
將ip地址換成對應域名就可以了...............