M
M
muhasa2019-11-19 14:23:28
git
muhasa, 2019-11-19 14:23:28

What is the best practice in git after deleting a commit for a remote server?

I ran into this complexity
. Suppose I made a local commit, even 2. I uploaded both to the repo, from there it was pulled to the production server.
Now I understand that the second commit was a mistake, I need to roll back to commit 1. The practice of deleting a commit from a repository, especially when two people are working on it, is considered vicious, so the question is - how should I behave here?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
toxa82, 2019-11-19
@muhasa

The right thing to do would be to reverse an unnecessary commit.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question