In my project we need to revert an old commit which upgraded version of Protobuf library to 3 back to 2 as our counterparts are not ready to upgrade yet. This upgrade was made around 24 commits ago.
For now I manually made those changes and pushed in a new commit. Is there a way I can git revert
that commit and still keep the changes from all the newer 22 commits?
Asked
Active
Viewed 47 times
3

Tarnished-Coder
- 318
- 2
- 7
-
2[This](https://stackoverflow.com/q/2318777/5987698) may be relevant. – GoodDeeds Feb 28 '20 at 21:55
-
1`git revert
` should undo only the changes introduced by that commit. Did you encounter any error or problem with `git revert`? – ElpieKay Feb 29 '20 at 02:08 -
1this was just what I was looking for @GoodDeeds. Thanks – Tarnished-Coder Mar 02 '20 at 18:12