K
K
karmyskove2021-05-04 10:17:57
git
karmyskove, 2021-05-04 10:17:57

How to remove multiple commits?

Good afternoon! I wanted to change the last commit, as a result I got a completely unexpected result, how can I delete the last two commits? I apologize in advance for the stupid question, I'm just afraid to complicate things even more ;D
6090f51587cbd725361391.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Valery, 2021-05-04
@karmyskove

1. git rebase HEAD~4 -i
2. before the commits to be removed - change picktodrop

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question