Git hook when a new branch is created and/or pushed

后端 未结 2 491
孤城傲影
孤城傲影 2020-12-05 23:34

I want to hook into the creation of a new branch. Either when the branch is created or when the first push is done. Is one or both possible?

2条回答
  •  广开言路
    2020-12-06 00:09

    It's the update hook, it gets a zero sha for new refs, branches will say heads not tags

提交回复
热议问题