git-blame-someone-else README

The project's README from github.com/jayphelps/git-blame-someone-else. As one markdown file: README.md.

git-blame-someone-else

"I love git-blame-someone-else!!" -Linus Torvalds says*

Install

$ git clone https://github.com/jayphelps/git-blame-someone-else.git
$ cd git-blame-someone-else
$ sudo make install

Usage

$ git blame-someone-else <author> <commit>

ezgif-1396449034

Disclaimer:

This changes not only who authored the commit but the listed commiter as well. It also is something I wrote as a joke, so please don't run this against your production repo and complain if this script deletes everything.

*Linus Torvalds didn't really approve of this. It's a joke to prove it works. See his fake commit here

:shipit:

git-blame-someone-else (jayphelps/git-blame-someone-else)

Searching Database…

这是什么?一个 git 恶作剧脚本:它会改写提交记录,让代码看起来像是别人写的。作者明确说这只是个玩笑,不是正经工具。
这是一个独立的软件,还是要装进 git 里用的东西?只是一个针对 git 仓库运行的 Shell 脚本——不是服务,也不是应用。仓库自带一个 Makefile,用来安装它。
我怎么把它跑起来?克隆仓库,用自带的 Makefile 安装脚本,然后指定一个要改写作者信息的提交。README 里的 Install 和 Usage 部分是空的,所以脚本本身就是真正的说明文档。
除了 git,运行它还需要别的吗?只需要 git 和一个 Unix 风格的 Shell,因为整个东西都是用 Shell 写的。不需要运行环境、API 密钥或外部服务。
在我们的生产仓库上运行它安全吗?不安全——作者警告只能在坏了也无所谓仓库上用,还说最坏情况下它甚至可能把所有东西都删掉。把它当成开玩笑的玩具就好,别当维护工具。
它在 Windows 上能用,还是只能在 Mac 和 Linux 上用?哪里都没提 Windows 支持;作为一个纯 Shell 脚本,它的天然环境是 Linux 和 macOS。
这个脚本到底改了提交里的什么?两个作者相关的字段都会改:它不只改写列出的作者,连提交者(committer)也一起改,这样即使在会检查提交者的工具里,伪造的署名也能保持一致。
Linus Torvalds 真的推荐过这个吗?没有——README 顶上那段吹捧的话也是玩笑的一部分。README 承认 Torvalds 从来没认可过,还指向一个纯粹为了演示脚本有效而伪造的提交。
What are similar projects?diff-so-fancy, n, thefuck, oh-my-posh, exa, coreutils, neofetch, z
Creator
jayphelps
Size
<0.1 MB
Stars
11.7K
Updated
CommitJun 13
Age
10y
Commits · 90 Days