Live data from Hacker News

Git Blame-Someone-Else

github.com

1–10 of 69 posts

Re: Git Blame-Someone-Else

#2
Personally, I find this really useful when I accidentally squash something incorrectly during a rebase and in the process of cleaning it up end up with changes attributed to the “wrong” person.

Re: Git Blame-Someone-Else

#4
It's funny but it doesn't actually work because the hash of the modified commit and all subsequent ones will necessarily change, right? So it would be very visible to everyone that a change has been made as it might break a lot of things to force-push an incompatible history of commit.

Re: Git Blame-Someone-Else

#5
post #4

It's funny but it doesn't actually work because the hash of the modified commit and all subsequent ones will necessarily change, right? So it would be very visible to everyone that a change has been made as it might break a lot of things to force-push an incompatible history of commit.

> it doesn't actually work because the hash of the modified commit and all subsequent ones will necessarily change, right?

True, so it is just a joke.

Re: Git Blame-Someone-Else

#6
post #4

It's funny but it doesn't actually work because the hash of the modified commit and all subsequent ones will necessarily change, right? So it would be very visible to everyone that a change has been made as it might break a lot of things to force-push an incompatible history of commit.

Although your point is perfectly valid, I don't think the tool is intended for anything other than fun.

Re: Git Blame-Someone-Else

#7

Personally, I find this really useful when I accidentally squash something incorrectly during a rebase and in the process of cleaning it up end up with changes attributed to the “wrong” person.

Check out `git reflog` to go back to before the mistake

Re: Git Blame-Someone-Else

#8
post #3

And that is why signing commits should be enforced.

You would already get a conflict as the history of the repo changed and signing all commits as some drawbacks as Torvalds explained here: http://git.661346.n2.nabble.com/GPG-signing-for-git-commit-t...

I'm not sure it's better.

Re: Git Blame-Someone-Else

#9
post #4

It's funny but it doesn't actually work because the hash of the modified commit and all subsequent ones will necessarily change, right? So it would be very visible to everyone that a change has been made as it might break a lot of things to force-push an incompatible history of commit.

The following hashes do changes (you can see that on the gif on their readme). I think you're meant to force push after using the tool

Re: Git Blame-Someone-Else

#10
What is more, you can:

1. clone https://github.com/torvalds/linux into /linux" rel="nofollow">https://github.com//linux.

2. push a fake "torvalds" commit into your repo.

3. check the SHA of the the commit that you made.

4. the commit will be visible at the original repo URL with your SHA (" rel="nofollow">https://github.com/torvalds/linux/commit/), with no indication whatsoever that this is coming from a different repo

I have reported this problem to GitHub a while ago and they replied to me that this is a well known feature of the repo "network".

Post reply on HN