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
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
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.