Jump to content

[Question] Exclude one commit


Recommended Posts

Posted

Hello!

I want to update to latest rev, however i am wondering is it possible to exclude specified commits from masteR?

I would like to keep the BG honor marks, which were removed by this commit.

Sure i could paste old code by hand, but is there more comfortable way?

Thanks in advance.

Posted

you can just do 'git apply -R' (or was it -r ?) to do it the 'reverse' way. so update, then extract the commit as a patch ('git show [commit] > my.diff') and then reverse-apply the created diff.

-- DasBlub

Posted
you can just do 'git apply -R' (or was it -r ?) to do it the 'reverse' way. so update, then extract the commit as a patch ('git show [commit] > my.diff') and then reverse-apply the created diff.

-- DasBlub

Why not just to

git revert [commit]

EDIT: Sorry didnt see last post

Posted

damn, i couldn't remember the 'git revert' command... i knew that it was there but i forgot that it existed for commits too ^^

thanks for pointing out hunuza & Diablox :)

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use