1.0.2 • Published 10 months ago

@llzcli/great-git-cli v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
10 months ago

GREAT GIT

更方便 更快捷的使用git

Installation

npm install @llzcli/great-git-cli -g

Use

gg

通过gg命令 你可以自动完成git add git commit git push 以及push遇到冲突时重新提交的一键操作

亮点

规范化的COMMIT信息

参考阿里提出的git commit规范 让你不用再去关心commit格式 只需要关注你所需要的提交信息

可配置的git命令

现有三种命令可以提供配置功能 分别是

  • git add阶段的命令
  • git push命令
  • git pull命令 你可以通过以下方式进行配置
gg config set <command> <targetCommand>

例如

gg config set pull "git pull -r"

一键操作式的git冲突重新提交

在你提交发现目标分支有冲突或者新提交时,你都可以通过命令行的方式去一键重新提交, 且如果有冲突 你的下一次提交commit type默认会选择merge,做到规范化提交,like this

无冲突

image

有冲突

image

*新功能

现在 great-git默认提供部分初始化的git alias 以上是alias列表

    "alias": {
        "st": "git status",
        "sp": "git stash pop",
        "ss": "git stash save",
        "ci": "git commit",
        "co": "git checkout",
        "ft": "git fetch",
        "fh": "git fetch"
    }

你也可以通过

gg config alias aliasName "aliasCommand"

对你的gg alias进行配置 (本功能的初心是在电脑没有配置alias的情况下(例如新电脑), 通过gg的默认alias配置即可实现git alias的使用,所以如果公认好的alias list可以一起参与建设此功能)

积极维护中

本工具正在积极维护中 如有ISSUE或BUG 请提交到上方GIT仓库中 作者会在看到时第一时间解决~

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago

0.0.9

10 months ago

0.0.8

10 months ago

0.0.7

10 months ago

0.0.6

10 months ago

0.0.5

10 months ago

0.0.4

10 months ago

0.0.3

10 months ago

0.0.2

10 months ago

0.1.1

10 months ago

0.1.0

10 months ago

0.0.0

10 months ago