News for hackers. Stuff that matters.
Re:Is Git Irreplaceable? (2019) by eyegor on Tuesday January 07, 2020 @09:07AM (#21979984)
Harkening back to my early days of git, I have a rough guess as to what you can do to fix that. If all you want is remote master,

  git stash
  git checkout master
  git stash
  git fetch origin
  git reset --hard origin/master
and maybe a 'git rm -r --cached .' in case you have staged files you didn't intend to which stash failed to drop.

There are no comments on this comment yet.