1

Ok, so I'm trying to install a piece of software (gnuradio) on my Fedora 29 machine. To get it to work, I'm told I have to "Revert this patch https://github.com/gnuradio/gnuradio/pull/2756".

But I don't exactly know how to do that... I tried just "git revert"+that link, but that wasn't right. I also tried "git revert"+the commit hash, no dice.

Further, I tried those two things with "git cherry-pick" and "git apply -R," all of which failed.

Clearly I'm a bit less experienced with git than I thought; how would I go about reverting this patch?

Thanks!

abdullahalali
  • 396
  • 2
  • 5
  • 18
Galloway
  • 11
  • 3
  • `git checkout 4fdba092`? – Maroun Nov 10 '19 at 07:35
  • I figured there's some way to revert the changes made by a specific commit/patch without reverting everything downstream of it. But yeah, I suppose checking out the commit right before the patch is worth a shot. – Galloway Nov 10 '19 at 08:02
  • read here: https://stackoverflow.com/questions/34519665/how-to-move-head-back-to-a-previous-location-detached-head-undo-commits/34519716#34519716 – CodeWizard Nov 10 '19 at 09:00

1 Answers1

0

Looking at PR 2756 it ended up as commit 2a76171 on master.

This would mean you should do git revert 2a76171.

tymtam
  • 31,798
  • 8
  • 86
  • 126