• 请不要在回答技术问题时复制粘贴 AI 生成的内容
glchaos
V2EX  ›  程序员

Git 建立远程仓库问题

  •  
  •   glchaos · Dec 3, 2015 · 3439 views
    This topic created in 3987 days ago, the information mentioned may be changed or developed.

    现在需求在一台服务器上建立一个 git 版本控制用,本地直接用 http 方法获取版本,请问服务器端应该如何配置。如果用 http 方式获取是否和本身的 web 服务冲突?

    7 replies  •  2015-12-04 12:07:57 +08:00
    SpicyCat
    SpicyCat
    Dec 3, 2015
    1
    没看懂。

    如果是说版本管理的话,一般用 git tag 做版本号管理
    myth
    myth
    Dec 3, 2015
    2
    gitlab !?
    forcecharlie
    forcecharlie
    Dec 3, 2015
    3
    很简单,开另一个端口,然后在 NGINX 或者 Apache 或者 IIS 判断 UA , Git 的 UA 是 git/xx 然后代理过去就行了。
    glchaos
    glchaos
    OP
    Dec 3, 2015
    4
    @forcecharlie soga,我来试试,多谢多谢
    ryd994
    ryd994
    Dec 3, 2015 via Android
    5
    @forcecharlie 不用 UA 这么麻烦,开个域名更方便
    glchaos
    glchaos
    OP
    Dec 4, 2015
    6
    @ryd994 开域名?这个真不行!
    fengyqf
    fengyqf
    Dec 4, 2015
    7
    git 自带 web 端,可以通过 nginx 等前端(反向)代理。
    效果参看 kerenl.org 的 git 仓库,示例 https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1562 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 23:07 · PVG 07:07 · LAX 15:07 · JFK 18:07
    ♥ Do have faith in what you're doing.