cytopia/git-rewrite-author
Composer 安装命令:
composer require cytopia/git-rewrite-author
包简介
Rewrite git author and committer history (locally and remotely).
README 文档
README
git-rewrite-author is a shell tool to manipulate the author and committer git history. You can use this tool to replace a specific git author/committer email with a different one.
For example: You have accidentally committed and pushed something urgent from your production server...
commit 70dbf556b735a7e1729f79b36502829415c037dd
Author: Charly Root <root@localhost>
Date: Sat Oct 10 18:30:01 2015 +0200
Applied Security Fix
...and now you see that your git author history is not very tidy anymore. Can this be changed? Of course :-)
Read more details at everythingcli.org
1. Features
- List all current git authors and committers (name and email)
- Search author/committer by email and replace with different name and email
- Show how all commands work (
--dryoption)
2. Usage
2.1 All options
Usage: git-rewrite-author -l [--dry]
git-rewrite-author -r <old_email> <new_email> <new_name> [--dry]
git-rewrite-author -h
git-rewrite-author -v
-l List current authors and committers in git
-r Rewrite history from <old_email> to <new_email> and <new_name>
--dry (optional) Do not do anything, just print the command.
-v Show version information.
-h Show this help screen.
2.2 List all authors
$ git-rewrite-author -l cytopia <cytopia@everythingcli.org>
2.3 Replace author
# Rewrite hisstory $ git-rewrite-author -r "cytopia@everythingcli.org" "better@email.com" "Cool Name" # See who is left in the history $ git-rewrite-author -l Cool Name <better@email.com>
3. Installation
You can download git-rewrite-author via git or composer:
# git git clone -https://github.com/cytopia/git-rewrite-author.git # composer composer require cytopia/git-rewrite-author
Afterwards just execute the install.sh, it will simply symlink the file to your home binary directory. So whenever you update the git repository afterwards, the symlink will always point to that version.
$ ./install.sh Symlink git-rewrite-author to ~/bin? (Y/n)y
4. Contribution
Contributors are welcome.
5. License
cytopia/git-rewrite-author 适用场景与选型建议
cytopia/git-rewrite-author 是一款 基于 Shell 开发的 Composer 扩展包,目前已累计 1.64k 次下载、GitHub Stars 达 16, 最近一次更新时间为 2015 年 10 月 10 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「git」 「git author」 「git committer」 「git history」 「rewrite git history」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 cytopia/git-rewrite-author 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 cytopia/git-rewrite-author 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 cytopia/git-rewrite-author 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A module that indicates when people are editing the same page in the CMS
Laravel Ownership simplify management of Eloquent model's owner.
Easily manage git hooks in your composer config
MediaWiki extension that allows embedding external content, specified by URL, into your wiki pages
Nagios plugin to verify a git repository.
Ready to use blog package
统计信息
- 总下载量: 1.64k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 16
- 点击次数: 21
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-10-10