开发者

Git Automation - Default Branches

I'm trying to setup some 'Global Defaults' when our team gets started on new projects. Ideally I'd like to configure some sort of script to accomplish the following:

  • New Repository Created -> Automatically create specific branches (i.e. develop/release/hotfix/feature/etc.)

Is t开发者_高级运维his possible within Git itself or should it be done using the shell?


It might be worth looking at git flow. The git flow init command does that.

https://github.com/nvie/gitflow

You might actually be interested in using git flow directly rather than just looking at how it does it, in which case I'd recommend reading this intro to it,

http://jeffkreeftmeijer.com/2010/why-arent-you-using-git-flow/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜