Answer the question
In order to leave comments, you need to log in
How to remove a commit from the server?
Hello!
The question is this:
I accidentally committed to another branch, the commit was displayed on the server.
The customer asks to remove this commit so that it is not visible at all, i.e. not to undo the changes with another commit, but to remove it.
Is it possible to do this in git?
Thank you.
Answer the question
In order to leave comments, you need to log in
If this is the last commit in the branch, then:
Delete it locally
Do a force push to the servergit push -f
tin, what kind of customer do you have? Does he need a product or beautiful git branches?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question