I was in the following situation, I was doing a training and I arrived at a point that my page was not loading correctly, being different from the instructor, it indicated a CSS problem so I made a git log
and went making git reset
to go back to previous commits and identify where I got lost.
The problem is that when I made a git log
to go back to the last commit , I realized that there was no log of my commits current. Luckily, by scrolling the Cmder page, I found the first git log
and made a git reset
using the latest hash and my project returned to the last status. p>
Would there be any way to do this without necessarily losing logs or git reset
is only for non-return cases?
For this my need I should have used git checkout <hash>
previous?