News for hackers. Stuff that matters.
Re:On undoing, fixing, or removing commits in git by fnord77 on Wednesday January 31, 2018 @01:01AM (#16271817)
easiest method (this article glosses over it): use BFG 2000: https://rtyley.github.io/bfg-repo-cleaner/
Re:On undoing, fixing, or removing commits in git by thrownaway954 on Wednesday January 31, 2018 @02:40PM (#16276873)
"The BFG treats you like a reformed alcoholic: you've made some mistakes in the past, but now you've cleaned up your act."

As a member of AA, I resemble that remark ;)

Re:On undoing, fixing, or removing commits in git by ereyes01 on Wednesday January 31, 2018 @01:38AM (#16271982)
Whoa, this is a revelation. Thanks for posting!
Re:On undoing, fixing, or removing commits in git by fzeroracer on Tuesday January 30, 2018 @08:07PM (#16270512)
I had to do a bit of history rewriting not too long ago. On my professional-facing repo I had some projects from back when I was in college where I had done a mixture of commits from both my professional persona and another username. It was only recently that I noticed and so I used git-filter-branch to clear out the commits I had made.

Thankfully it was a long-dormant project.

Re:On undoing, fixing, or removing commits in git by _ikke_ on Tuesday January 30, 2018 @07:07PM (#16270252)
We link to this regularly in the #git irc channel on freenode. Seth used to frequent there, but he hasn't been there for a while.
Re:On undoing, fixing, or removing commits in git by shakencrew on Tuesday January 30, 2018 @06:59PM (#16270226)
Re:On undoing, fixing, or removing commits in git by feifan on Tuesday January 30, 2018 @05:54PM (#16269867)
Stumbled across this the other day — life-saver. Very well-designed
Re:On undoing, fixing, or removing commits in git by cdubzzz on Wednesday January 31, 2018 @10:07AM (#16274352)
Also check out: http://ohshitgit.com/