Without wanting to reverti (undo) , how to advance the front?

Asked

Viewed 42 times

3

I was doing a reversal of a version, but unintentionally pressed 2 times undo in git dekstop, but the files I created before all went to space. Lot of logic and time lost. There is the possibility to recover these files ?

  • You have access to the command line?

  • Were the files already committed? Or were they still untracked?

  • Yes. They were committed,.. I do have access to bash

  • I believe that this is a similar problem to this one: https://answall.com/q/216458/64969 .

  • I couldn’t abstract the solution. I’m new to git. List the sha. But I can’t recover them

  • Has gitk? For each SHA1 obtained, give gitk <SHA1-obtido> to try to give a visual hint of what is happening

  • Thanks friend. I managed to solve my problem... It seems that I had died after that. But now I feel light again.. Have you thought over 1000 lost lines ?.. This will help me not to make this mistake anymore

  • I know, I’ve had to do that, too. I will mark as a duplicate of that question Inkei, because in my opinion it was her answer that guided you to your solution

  • Yes.. It was through her that I was able to solve

Show 4 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.