S
S
Sergey Khlopov2021-06-19 17:10:09
git
Sergey Khlopov, 2021-06-19 17:10:09

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 question

Ask a Question

731 491 924 answers to any question