1

git rebase -i HEAD~x (x= no. of commits) upon executing notepad file will open 'put' drop besides your commit git push --force-with-lease.

When I add drop it says unknown command.

Please let me know I only want to remove an specific commit

Shiv Kumar
  • 13
  • 4

1 Answers1

2

As mentioned in the second answer to this question, you could use git revert --strategy resolve <commit> where <commit> is the identifier of the commit to be reverted.

J-M. Gorius
  • 606
  • 4
  • 15