Git Product home page Git Product logo

devops_cli_tool's Introduction

devops cli 工具

如何安装?

npm install zing-git -g  # cnpm install zing-git -g  

或者 clone 代码,本地安装

npm install . -g

使用:

zgit --help # zgit -h

定期更新,通知大家 update 即可。

使用流程

这是一套提交代码规范,使用流程如下:

领取 bug 或 需求

zgit --bug  # zgit -b

领取 bug

如果是第一次使用,需要按提示在 terminal 中粘贴禅道的 Request Header 中的 cookie,或直接在 /usr/local/zingGit-config.json 调整。

zgit --feature # zgit -f

领取需求

如果是第一次使用,需要按提示在 terminal 中键入 wekan 的 账号 密码「空格分离」,或直接在 /usr/local/zingGit-config.json 调整。

提交

zgit --commit  # zgit -c

自动从 origin/master checkout 一份按照规范命名的本地分支 eg: fix-bug-11011。

合并流程

zgit --push # zigt -p

这个命令做了什么事:

  • ① 自动把 fix-bug-11011 推送到 origin

  • ② 自动 切换/checkout dev 到本地

  • ③ 自动 fetch、pull 代码保证本地 dev 与远程同步

  • ④ 自动 merge fix-bug-11011 到 dev

  • ⑤ 自动 push dev 到 origin/dev

  • ⑥ 手动解决/指派 bug ,等待测试即可

  • ⑦ 如果bug被关闭收到邮件通知,手动 merge origin/fix-bug-11011 到 origin/master 即可

FAQ

  • cookie

cookie 「以禅道为例」:要从外网获取:http://39.104.96.233:60888/zentao/ 不要从内网获取

  • 功能不好用

可以重新 npm install zing-git -gcnpm install zing-git -g,升级程序,保证程序最新

  • 初始化失败

可能您是 Linux 或 Unix「mac」 等系统,初次执行需要 「sudo」 权限

TODO

  • 自动解决/指派

效果

devops_cli_tool's People

Contributors

nonacosa avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.