LoginSignup
1
1

GitHub上で心霊現象に巻き込まれました・・・。

Last updated at Posted at 2024-03-01

呪われたリポジトリ

こちらです・・・。

haunted-repo

不吉な名前です。

お化け屋敷ならぬ「お化けリポジトリ」ということでしょうか・・・。

コミット履歴を見てみよう

おわかりいただけただろうか

image.png

image.png

呪われているッ!!

なんと今回、ghost(幽霊)にコミットされてしまいました・・・。

お祓いに行こうかな・・・。




























解説

~/.gitconfigの一部を一時的に以下のように書き換えてからコミットしました。

[user]
	name = Deleted user
	email = 10137+ghost@users.noreply.github.com

Q&A

~/.gitconfigを変えずに、git commitのオプションで--author "Deleted user <10137+ghost@users.noreply.github.com>" を指定すればいいんじゃないの?

これは実際試してみたのですが、~/.gitconfigが上書きされるわけではないようで、下の画像のようになってしまいます(--no-gpg-signオプションを付けても同様でした)。

image.png


ghostのコミットは内容が空っぽだけど、どうなっているの?

何もステージせずにコミットしています。

これはgit commit--allow-emptyオプションを使うと実現できます。

英語版の記事

参考

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1