Live data from Hacker News

How to undo almost anything with Git (2015)

github.blog

1–10 of 84 posts

Re: How to undo almost anything with Git (2015)

#4
It has always bugged me that

    git commit --amend 
Doesn't automatically resign (or fail to resign if the key isn't available) a signed git commit message. Anytime there is a non-verified git commit message in my history you can be sure it's because I was a dummy on the original message.

Re: How to undo almost anything with Git (2015)

#8

It's missing git revert merges git revert -m 1 88113a64a21bf8a51409ee2a1321442fd08db705

PSA: You can safely refer to those long "commit-ish" identifiers using just the first 7 or 8 chars (eg `88113a64`) without real risk of collision. Let alone in examples / gists!

Re: How to undo almost anything with Git (2015)

#10
post #4

It has always bugged me that git commit --amend Doesn't automatically resign (or fail to resign if the key isn't available) a signed git commit message. Anytime there is a non-verified git commit message in my history you can be sure it's because I was a dummy on the original message.

Wait, seriously? I sign all my commits as habit and I `--amend` regularly. If this means my signature histories are broken…
Post reply on HN