Answer the question
In order to leave comments, you need to log in
How to remove unnecessary commits and push to the repository?
Hello, tell me please. I made some commits and pushed them.
Now we need to remove these commits, locally I removed them with the command - git reset --hard HEAD~1. But now I can't push. Can you please tell me the best way to do this?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question