如何正确获取go build的返回码?
I want to add go build
into a precommit hook so that not to ship unbuildable code.
If the build succeeds, I want to continue commit, otherwise fail and reject commit.
How do I do it properly?
douqian3712
2017/01/21 08:01- hook
- git
- 点赞
- 收藏
- 回答
满意答案
1个回复
