B
B
BonBon Slick2020-05-11 11:14:08
git
BonBon Slick, 2020-05-11 11:14:08

What is the right way to do rest [email protected]{*}?

[email protected]:/var/www/event-app-v3$ git reflog [email protected]{0}
093dcb9 [email protected]{0}: rebase finished: refs/heads/speaker-attendee-ui onto 093dcb998532ad42a9f4bfe44fb9ad629f4acf95
b402408 [email protected]{1}: branch: Created from b402408

[email protected]:/var/www/event-app-v3$ git reset --hard [email protected]{1}
HEAD is now at 093dcb9 Website App v3 Update

[email protected]:/var/www/event-app-v3$ git reflog [email protected]{0}
093dcb9 [email protected]{0}: rebase finished: refs/heads/speaker-attendee-ui onto 093dcb998532ad42a9f4bfe44fb9ad629f4acf95
b402408 [email protected]{1}: branch: Created from b402408

[email protected]:/var/www/event-app-v3$ git reset --hard [email protected]{0}
HEAD is now at 093dcb9 Website App v3 Update

[email protected]:/var/www/event-app-v3$ git reflog [email protected]{0}
093dcb9 [email protected]{0}: rebase finished: refs/heads/speaker-attendee-ui onto 093dcb998532ad42a9f4bfe44fb9ad629f4acf95
b402408 [email protected]{1}: branch: Created from b402408


I want to return the code before the rebase.
As you can see, the reset happens to hash 093dcb9, but b402408 is needed.

I know what can be done directly reset --hard b402408, but why does [email protected]{1} not work?

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