0

I have to revert around 15 commits and merge the code to master, basically im trying to move head 15 commits back. The issue is i do not have access to do a force push to remote repo. How can we achieve this ?

i tried git revert and each time it goes one commit behind.

Shree
  • 111
  • 1
  • 2
  • 8
  • 3
    You can't rewrite history without force pushing. You *can* revert multiple commits, see e.g. https://stackoverflow.com/questions/1463340/how-to-revert-multiple-git-commits – jonrsharpe Aug 28 '19 at 15:50

1 Answers1

1

multiple reverts will work only when you don't have any merge commits within your list of commits you are reverting