V
V
valentine112016-10-05 13:22:56
git
valentine11, 2016-10-05 13:22:56

Made rebase origin/develop in master, how to get it back?

Good day to all!
The work uses git flow.
Today I, in a project in which I have never worked before, being in a local repo in master, did git fetch --all -p and then in the same place - git rebase origin/develop (I just forgot to switch to develop beforehand)
Question: how return everything as it was?? I don’t have much practice with the git, I mostly execute memorized commands, so I’m afraid to spoil it even more.
UPD. I did a git reflog, but how do I figure out which revision number I need to reset?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
_
_ _, 2016-10-05
@valentine11

How about git reset --hard and specify the desired commit hash?

R
romy4, 2016-10-05
@romy4

If you suddenly want to deal with these branches in more detail, then [1] and [2] and about rollbacks

A
aol-nnov, 2016-10-05
@aol-nnov

git reflog
а потом - что угодно. например,git reset --hard

S
Saboteur, 2016-10-05
@saboteur_kiev

Если ничего не делали и не пушили, почему бы не rm -rf и не git clone с нуля?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question