News for hackers. Stuff that matters.
Re:Is Git Irreplaceable? (2019) by etripe on Tuesday January 07, 2020 @11:57AM (#21981792)
You could always do:

  git reflog
to see when you last checked out master, then:

  git reset <commit hash> --soft
to reset to the commits at that point (but keep your files the same)

  git add . && git stash save
to stash your changes (not 100% sure you actually need the "git add ." part)

  git pull
in master

and then finally:

  git stash pop
and commit again as needed.

There are no comments on this comment yet.