Thanks Rémi, you saved me a lot time.

I thought, if I do "git reflog" and it displays all changes I did, it will 
roll back through all changes & branches.

After your answer everything become clear.
However, I think the best implementation would be to work like I proposed 
to work.


Thanks very much!
Konrad





2015. június 10., szerda 17:04:44 UTC+2 időpontban Rémi Rampin a következőt 
írta:
>
> 2015-06-09 15:55 GMT-04:00 Konrád Lőrinczi <klor...@gmail.com 
> <javascript:>>:
>
>> I did a few git rebase interactive between branches, but when I use git 
>> reflog & git reset --hard HEAD@{N} I can not get the same branch hierarchy 
>> as it was before.
>> git reflog
>> git reset --hard HEAD@{14}
>>
>
> Hi,
>
> You seem to be confused as to what git reset --hard does -- it doesn't 
> reset your whole repository, it moves a single branch head to a different 
> commit.
>
> You will have to consult the reflog of each branch (git reflog local_dev), 
> and reset that branch to the correct point (git checkout local_dev; git 
> reset --hard local_dev@{N}).
>
> Good luck
> -- 
> Rémi Rampin
>

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to