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

Git 建立远程仓库问题

  •  
  •   glchaos · Dec 3, 2015 · 3206 views
    This topic created in 3854 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
        1
    SpicyCat  
       Dec 3, 2015
    没看懂。

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