heat
V2EX  ›  问与答

请问 git 的 1.7.9.5 版本怎么做钩子?

  •  
  •   heat · Aug 25, 2015 · 1854 views
    This topic created in 4113 days ago, the information mentioned may be changed or developed.
    我之前一般都是 hooks/下面做一个 post-receive 。并且设定权限 777

    这次帮朋友的 VPS 配置 GIT 却发现根本没有 post-receive.sample 。于是我自己建立了一个 post-receive 并且想往常一样输入内容,设定权限,却发现完全不 work 。 gg 了一下,也没找到解决方案。请问有没有类似经验的同学指点一下

    hooks/下面的文件如图:(post-receive是我新建的)
    1 replies  •  2015-08-25 17:39:27 +08:00
    heat
    heat
    OP
    Aug 25, 2015
    1
    自己顶一下
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1109 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 18:22 · PVG 02:22 · LAX 10:22 · JFK 13:22
    ♥ Do have faith in what you're doing.