代码仓库
iForge 提供完整的 Git 代码托管能力。
仓库管理
- 创建仓库:支持公开/私有仓库,可设置描述和默认分支
- 导入仓库:从外部 Git URL 导入现有仓库
- Fork 仓库:任何登录用户可 Fork 公开仓库到自己的空间
- 镜像同步:配置自动从外部仓库拉取更新
- 仓库设置:自定义克隆 URL 模板(HTTPS/SSH 前缀)
Git 协议
HTTP/HTTPS
git clone http://your-host:8081/owner/repo.git
git push origin main
所有 Git HTTP 操作(clone、push、pull、fetch)走 8081 端口,与 API 共用。