-1

Can anyone tell me how can I remove a specific commit from master? This commit is 10 commits down. I mean 10 commits have been pushed after this commit. How many ways can we do it?

Jonathan Leffler
  • 698,132
  • 130
  • 858
  • 1,229
Asad Khan
  • 423
  • 1
  • 8
  • 18

1 Answers1

0

Use this:

git revert <commit id>

For example

git revert dd61ab32
msc
  • 32,079
  • 22
  • 110
  • 197