The Go Programming Language
http://golang.org/
Go Playground
Go Projects
Revel Web Framework
jxia

gitw - Git 命令包装器,生成 git 变更记录日志,获取 repo 信息和一些 git 命令工具

  •  1
     
  •   jxia · Jul 6, 2022 · 1655 views
    This topic created in 1472 days ago, the information mentioned may be changed or developed.

    gitw - Git 命令包装器,生成 git 变更记录日志,获取 repo 信息和一些 git 命令工具。

    Github https://github.com/gookit/gitw

    • 包装本地 git 命令
    • 快速运行 git 命令
    • 快速查询存储库信息
      • 获取 remote, branch 详细信息
    • 通过 git log 快速生成版本变更日志
      • 允许自定义生成配置
      • 允许自定义生成过滤、样式等
      • 可以直接在 GitHub Actions 中使用

    生成变更日志

    可以通过 gitw/chlog 包快速生成变更日志。

    安装

    go install github.com/gookit/gitw/cmd/chlog@latest
    

    使用

    生成变更日志::

    chlog prev last
    chlog last head
    chlog -c .github/changelog.yml last head
    

    Outputs:

    chlog-demo

    仓库信息

    可以通过 gitw 在本地快速获取 git 存储库信息。

    repo := gitw.NewRepo("/path/to/my-repo")
    

    Branch 信息

    brInfo := repo.CurBranchInfo()
    
    dump.Println(brInfo)
    

    Output:

    one-remote-info

    更多

    更多使用说明请看 README 和 godoc

    Github https://github.com/gookit/gitw

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   915 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 20:26 · PVG 04:26 · LAX 13:26 · JFK 16:26
    ♥ Do have faith in what you're doing.