Live data from Hacker News

Linus Torvalds did not commit this

github.com

1–10 of 198 posts

Re: Linus Torvalds did not commit this

#2
Kinda hard to not come up with it when setting up your credentials is the first thing git wants you to do before you can commit anything. BTW. You can also overwrite them by command line switches per commit instead of setting environment variables.

I guess it's worth noting here that you can sign your commits with GPG: https://git-scm.com/book/tr/v2/Git-Tools-Signing-Your-Work

Re: Linus Torvalds did not commit this

#4

Kinda hard to not come up with it when setting up your credentials is the first thing git wants you to do before you can commit anything. BTW. You can also overwrite them by command line switches per commit instead of setting environment variables. I guess it's worth noting here that you can sign your commits with GPG: https://git-scm.com/book/tr/v2/Git-Tools-Signing-Your-Work

I guess the real uptake is that commits should really be signed by default (eg, by encouraging signing in the tools & ecosystem).

Re: Linus Torvalds did not commit this

#6
TBH we "exploit" this when accepting PRs for an open source project I work on. It's not really feasible for us to expect / force each PR author to have a clean commit history, so we basically do some squashing, then commit the "single" change as the original author before merging.

Re: Linus Torvalds did not commit this

#7

I think this is pretty well known. You could always sign your commits if you're really worried about someone sticking your email address in their git config.

I feel as though a GIT demo somewhere has already shown me how to impersonate Linus or anyone else.

Re: Linus Torvalds did not commit this

#8

I think this is pretty well known. You could always sign your commits if you're really worried about someone sticking your email address in their git config.

I feel as though a GIT demo somewhere has already shown me how to impersonate Linus or anyone else.

Yeah, I've definitely seen something very similar, as well.

Re: Linus Torvalds did not commit this

#9

I think this is pretty well known. You could always sign your commits if you're really worried about someone sticking your email address in their git config.

While it's probably well known from a command line perspective, I doubt it's well known from a web service (GitHub) perspective. I have a healthy distrust of git logs but trusting a photo and username on GitHub is a pattern reinforced by every other social app.

Re: Linus Torvalds did not commit this

#10
post #6

TBH we "exploit" this when accepting PRs for an open source project I work on. It's not really feasible for us to expect / force each PR author to have a clean commit history, so we basically do some squashing, then commit the "single" change as the original author before merging.

So, when submitting to your project it can happen that I'm afterwards blamed for things I didn't do? (Or praised)
Post reply on HN