24
avitron
7y

git reflog saved me from going bald one time.

Comments
  • 1
    Story time
  • 9
    @sam9669 Long story short, I accidentally rebased a feature branch with master instead of merge, as a result it messed up the entire commit history. I'm more used to using CLI for git, and only use SourceTree when I want to check diff.

    Plus I was doing bisect that day, so a lot of typing and frustration accidentally led to me type it I guess.

    Later on finally found about git reflog and it's magical powers. Reverted the entire branch to its previous state before rebase was made. And everyone lived happily ever after.
  • 3
    Wish I knew about this. I messed up a branch badly enough that it put me behind by 3 hours
Add Comment