git-extras README

The project's README from github.com/tj/git-extras. As one markdown file: README.md.

Git Extras

Little git extras.

Screencasts

Just getting started? Check out these screencasts:

Installation

See the Installation page.

Commands

Go to the Commands page for basic usage and examples.

GIT utilities -- repo summary, repl, changelog population, author commit percentages and more

Contributing

Interested in contributing? Awesome!

Please read Contributing before you make a PR, thanks!

The change of the default branch

As of Git Extras 6.4 the assumed default branch name changed from master to main. This affects the Git Extras commands git archive-file, git delete-merged-branches, git delta, git pull-request, git show-merged-branches, git show-unmerged-branches, and git squash.

To change the default branch name to master: change either the configuration git-extras.default-branch or init.defaultBranch to master; the former takes precedence.

For example, git config git-extras.default-branch master.

git-extras (tj/git-extras)

Searching Database…

这是什么?git-extras 是一组额外的 Git 命令,补充了一些原本缺少的便利功能,例如仓库概览、变更日志生成器、版本发布打标签、作者贡献统计等。
这是独立应用,还是一组 git 子命令?它是一组 Shell 脚本子命令,可以接入 git,因此你可以像运行任何原生 git 命令一样使用它们(例如 git effort、git changelog)。
除了 git 本身,我还需要别的东西吗?只需要 Git 和类 Unix 的 Shell 环境即可;这些脚本是普通的 Shell 脚本,安装时使用 make。
把默认分支从 master 改成 main 会不会出问题?从 6.4 版本开始,默认分支由 master 改为 main,这会影响 git archive-file、git delete-merged-branches、git delta、git pull-request、git show-merged-branches、git show-unmerged-branches 和 git squash 等命令;如需恢复,可以把 git-extras.default-branch 设置为 master。
它会添加哪些类型的命令?包括仓库概览、变更日志生成器、发布辅助工具和作者提交占比统计等命令,以及项目“命令”页面中列出的许多其他命令。
安装前在哪里可以先看到演示?README 中链接了演示视频,涵盖 git-ignore、git-setup、git-changelog、git-release 和 git-effort 等命令。
如何把默认分支名改回 master?将 git-extras.default-branch 配置(或 init.defaultBranch)设置为 master,例如执行 git config git-extras.default-branch master。
Creator
tj
Size
2.3 MB
Stars
18.1K
Age
16y
Commits · 90 Days