-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
  • 730,956
  • 141
  • 904
  • 1,278
Asad Khan
  • 473
  • 1
  • 8
  • 21

1 Answers1

0

Use this:

git revert <commit id>

For example

git revert dd61ab32
msc
  • 33,420
  • 29
  • 119
  • 214