Git Product home page Git Product logo

gitlaboy's Introduction

gitlaboy

适配GitLab的cli客户端,可以提供创建mr,创建cherry-pick等操作。

工具特点

  1. 按照规范创建分支
  2. 在任意分支提mr
  3. 在任意分支提cherry-pick

安装说明

前置环境

需要安装node(版本大于18)和npm

安装命令

环境安装完成后,执行下面命令进行全局安装:

sudo npm install -g gitlaboy

使用说明

初始化

安装成功后,需要执行命令

sudo gt-init

(windows请用管理员权限执行此命令)

进行工具初始化,此时会要求你输入常用配置,如git的地址以及秘钥等配置。

项目注册

sudo gt-regist

在gitlab的项目目录下执行这个命令,会自动注册这个项目。 原理是根据当前项目的git配置,在gitLab中查找对应项目,如果出现多个,会在用户选择后注册。 示例图

使用方式

gt-cb 选定一个分支,基于它创建新分支。

gt-cb

示例图

gt-list 展示当前已经注册的项目。

gt-list

示例图

gt-mr 将当前分支创建mr到指定分支上,并展示在线链接。

gt-mr

gt-mr创建mr示例图

gt-cp 将当前分支的commits进行cherry-pick到其他分支。

gt-cp

示例图

老用户升级

sudo npm update -g gitlaboy

Q&A

  • gt 找不到命令:检查一下是否是全局安装。
  • 命令提示没有权限 使用sudo(mac环境) 或者 管理员权限执行命令(windows)
  • 使用命令时报错,更新Node版本到18以上

有任何使用问题可以提issue哈

gitlaboy's People

Contributors

leochens avatar code-poor 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.